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

Acts as a common base between code completion and parameter completion.
Datei anzeigen Open project: 0xd4d/NRefactory Class Usage Examples

Protected Properties

Property Type Description
currentMember IUnresolvedMember
currentType IUnresolvedTypeDefinition
document IDocument
location TextLocation
offset int

Public Methods

Method Description
AppendMissingClosingBrackets ( StringBuilder wrapper, bool appendSemicolon ) : void
GetCurrentParameterIndex ( int triggerOffset, int endOffset ) : int
GetCurrentParameterIndex ( int triggerOffset, int endOffset, List &usedNamedParameters ) : int
GetParameterCompletionCommandOffset ( int &cpos ) : bool
SetOffset ( int offset ) : void

Protected Methods

Method Description
CSharpCompletionEngineBase ( IProjectContent content, ICompletionContextProvider completionContextProvider, ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpTypeResolveContext ctx ) : System
CreateWrapper ( string continuation, bool appendSemicolon, string afterContinuation, string memberText, TextLocation memberLocation, int &closingBrackets, int &generatedLines ) : StringBuilder
GetInvocationBeforeCursor ( bool afterBracket ) : ExpressionResult
GetMemberTextToCaret ( ) : TextLocation>.Tuple
GetState ( ) : CSharpResolver
IsInsideCommentStringOrDirective ( ) : bool
IsInsideCommentStringOrDirective ( int offset ) : bool
IsInsideDocComment ( ) : bool
ParseStub ( string continuation, bool appendSemicolon = true, string afterContinuation = null ) : SyntaxTree
Reset ( ) : void
ResolveExpression ( AstNode expr ) : ExpressionResolveResult
ResolveExpression ( ExpressionResult tuple ) : ExpressionResolveResult

Private Methods

Method Description
GetBracketStack ( string memberText ) : int>>.Stack

Method Details

AppendMissingClosingBrackets() public static method

public static AppendMissingClosingBrackets ( StringBuilder wrapper, bool appendSemicolon ) : void
wrapper StringBuilder
appendSemicolon bool
return void

CSharpCompletionEngineBase() protected method

protected CSharpCompletionEngineBase ( IProjectContent content, ICompletionContextProvider completionContextProvider, ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpTypeResolveContext ctx ) : System
content IProjectContent
completionContextProvider ICompletionContextProvider
ctx ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpTypeResolveContext
return System

CreateWrapper() protected method

protected CreateWrapper ( string continuation, bool appendSemicolon, string afterContinuation, string memberText, TextLocation memberLocation, int &closingBrackets, int &generatedLines ) : StringBuilder
continuation string
appendSemicolon bool
afterContinuation string
memberText string
memberLocation TextLocation
closingBrackets int
generatedLines int
return StringBuilder

GetCurrentParameterIndex() public method

public GetCurrentParameterIndex ( int triggerOffset, int endOffset ) : int
triggerOffset int
endOffset int
return int

GetCurrentParameterIndex() public method

public GetCurrentParameterIndex ( int triggerOffset, int endOffset, List &usedNamedParameters ) : int
triggerOffset int
endOffset int
usedNamedParameters List
return int

GetInvocationBeforeCursor() protected method

protected GetInvocationBeforeCursor ( bool afterBracket ) : ExpressionResult
afterBracket bool
return ExpressionResult

GetMemberTextToCaret() protected method

protected GetMemberTextToCaret ( ) : TextLocation>.Tuple
return TextLocation>.Tuple

GetParameterCompletionCommandOffset() public method

public GetParameterCompletionCommandOffset ( int &cpos ) : bool
cpos int
return bool

GetState() protected method

protected GetState ( ) : CSharpResolver
return ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver

IsInsideCommentStringOrDirective() protected method

protected IsInsideCommentStringOrDirective ( ) : bool
return bool

IsInsideCommentStringOrDirective() protected method

protected IsInsideCommentStringOrDirective ( int offset ) : bool
offset int
return bool

IsInsideDocComment() protected method

protected IsInsideDocComment ( ) : bool
return bool

ParseStub() protected method

protected ParseStub ( string continuation, bool appendSemicolon = true, string afterContinuation = null ) : SyntaxTree
continuation string
appendSemicolon bool
afterContinuation string
return SyntaxTree

Reset() protected method

protected Reset ( ) : void
return void

ResolveExpression() protected method

protected ResolveExpression ( AstNode expr ) : ExpressionResolveResult
expr AstNode
return ExpressionResolveResult

ResolveExpression() protected method

protected ResolveExpression ( ExpressionResult tuple ) : ExpressionResolveResult
tuple ExpressionResult
return ExpressionResolveResult

SetOffset() public method

public SetOffset ( int offset ) : void
offset int
return void

Property Details

currentMember protected_oe property

protected IUnresolvedMember currentMember
return IUnresolvedMember

currentType protected_oe property

protected IUnresolvedTypeDefinition currentType
return IUnresolvedTypeDefinition

document protected_oe property

protected IDocument document
return IDocument

location protected_oe property

protected TextLocation location
return TextLocation

offset protected_oe property

protected int offset
return int