C# Class ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine

Inheritance: CSharpCompletionEngineBase
Show file Open project: mono-soc-2012/NRefactory Class Usage Examples

Public Properties

Property Type Description
AutoCompleteEmptyMatch bool
AutoSelect bool
CloseOnSquareBrackets bool
DefaultCompletionString string

Public Methods

Method Description
CSharpCompletionEngine ( IDocument document, ICompletionContextProvider completionContextProvider, ICompletionDataFactory factory, IProjectContent content, ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpTypeResolveContext ctx ) : System
GetCompletionData ( int offset, bool controlSpace ) : IEnumerable
GetPreviousMemberReferenceExpression ( int tokenIndex ) : string
TryGetCompletionWord ( int offset, int &startPos, int &wordLength ) : bool

Private Methods

Method Description
AddContextCompletion ( CompletionDataWrapper wrapper, CSharpResolver state, AstNode node ) : void
AddDelegateHandlers ( CompletionDataWrapper completionList, IType delegateType, bool addSemicolon = true, bool addDefault = true ) : string
AddEnumMembers ( CompletionDataWrapper completionList, IType resolvedType, CSharpResolver state ) : void
AddKeywords ( CompletionDataWrapper wrapper, IEnumerable keywords ) : void
AddTypesAndNamespaces ( CompletionDataWrapper wrapper, CSharpResolver state, AstNode node, IType>.Func typePred = null, Predicate memberPred = null, IType>.Action callback = null ) : void
AddVirtuals ( List alreadyInserted, CompletionDataWrapper col, string modifiers, IType curType, int declarationBegin ) : void
CreateCaseCompletionData ( TextLocation location ) : IEnumerable
CreateCompletionData ( TextLocation location, ResolveResult resolveResult, AstNode resolvedNode, CSharpResolver state, IType>.Func typePred = null ) : IEnumerable
CreateParameterCompletion ( ICSharpCode.NRefactory.CSharp.Resolver.MethodGroupResolveResult resolveResult, CSharpResolver state, AstNode invocation, CompilationUnit unit, int parameter, bool controlSpace ) : IEnumerable
CreateTypeAndNamespaceCompletionData ( TextLocation location, ResolveResult resolveResult, AstNode resolvedNode, CSharpResolver state ) : IEnumerable
CreateTypeCompletionData ( IType hintType ) : IEnumerable
CreateTypeList ( ) : IEnumerable
DefaultControlSpaceItems ( ExpressionResult xp = null, bool controlSpace = true ) : IEnumerable
GenerateNameProposals ( AstType type ) : IEnumerable
GetDirectiveCompletionData ( ) : IEnumerable
GetExpressionAt ( int offset ) : ExpressionResult
GetExpressionAtCursor ( ) : ExpressionResult
GetExpressionBeforeCursor ( ) : ExpressionResult
GetImplementation ( ITypeDefinition type, IUnresolvedMethod method ) : IMethod
GetLastClosingXmlCommentTag ( ) : string
GetLineIndent ( int lineNr ) : string
GetNewExpressionAt ( int offset ) : ExpressionResult
GetOverrideCompletionData ( IUnresolvedTypeDefinition type, string modifiers ) : IEnumerable
GetPartialCompletionData ( ITypeDefinition type, string modifiers ) : IEnumerable
GetPreviousToken ( int &i, bool allowLineChange ) : string
GetShortType ( IType type, CSharpResolver state ) : string
GetXmlDocumentationCompletionData ( ) : IEnumerable
HandleAccessorContext ( ) : IEnumerable
HandleCatchClauseType ( ExpressionResult identifierStart ) : IEnumerable
HandleEnumContext ( ) : IEnumerable
HandleKeywordCompletion ( int wordStart, string word ) : IEnumerable
HandleMemberReferenceCompletion ( ExpressionResult expr ) : IEnumerable
HandleObjectInitializer ( CompilationUnit unit, AstNode n ) : IEnumerable
IsAccessibleFrom ( IEntity member, ITypeDefinition calledType, IMember currentMember, bool includeProtected ) : bool
IsAttributeContext ( AstNode node ) : bool
IsInLinqContext ( int offset ) : bool
IsInPreprocessorDirective ( ) : bool
IsInSwitchContext ( AstNode node ) : bool
IsLineEmptyUpToEol ( ) : bool
MagicKeyCompletion ( char completionChar, bool controlSpace ) : IEnumerable
MatchDelegate ( IType delegateType, IMethod method ) : bool

Method Details

CSharpCompletionEngine() public method

public CSharpCompletionEngine ( IDocument document, ICompletionContextProvider completionContextProvider, ICompletionDataFactory factory, IProjectContent content, ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpTypeResolveContext ctx ) : System
document IDocument
completionContextProvider ICompletionContextProvider
factory ICompletionDataFactory
content IProjectContent
ctx ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpTypeResolveContext
return System

GetCompletionData() public method

public GetCompletionData ( int offset, bool controlSpace ) : IEnumerable
offset int
controlSpace bool
return IEnumerable

GetPreviousMemberReferenceExpression() public method

public GetPreviousMemberReferenceExpression ( int tokenIndex ) : string
tokenIndex int
return string

TryGetCompletionWord() public method

public TryGetCompletionWord ( int offset, int &startPos, int &wordLength ) : bool
offset int
startPos int
wordLength int
return bool

Property Details

AutoCompleteEmptyMatch public property

public bool AutoCompleteEmptyMatch
return bool

AutoSelect public property

public bool AutoSelect
return bool

CloseOnSquareBrackets public property

public bool CloseOnSquareBrackets
return bool

DefaultCompletionString public property

public string DefaultCompletionString
return string