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

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

Protected Properties

Свойство Type Description
currentMember IUnresolvedMember
currentType IUnresolvedTypeDefinition
document IDocument
location TextLocation
offset int

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
GetBracketStack ( string memberText ) : int>>.Stack

Method Details

AppendMissingClosingBrackets() public static méthode

public static AppendMissingClosingBrackets ( StringBuilder wrapper, bool appendSemicolon ) : void
wrapper StringBuilder
appendSemicolon bool
Résultat void

CSharpCompletionEngineBase() protected méthode

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

CreateWrapper() protected méthode

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
Résultat StringBuilder

GetCurrentParameterIndex() public méthode

public GetCurrentParameterIndex ( int triggerOffset, int endOffset ) : int
triggerOffset int
endOffset int
Résultat int

GetCurrentParameterIndex() public méthode

public GetCurrentParameterIndex ( int triggerOffset, int endOffset, List &usedNamedParameters ) : int
triggerOffset int
endOffset int
usedNamedParameters List
Résultat int

GetInvocationBeforeCursor() protected méthode

protected GetInvocationBeforeCursor ( bool afterBracket ) : ExpressionResult
afterBracket bool
Résultat ExpressionResult

GetMemberTextToCaret() protected méthode

protected GetMemberTextToCaret ( ) : TextLocation>.Tuple
Résultat TextLocation>.Tuple

GetParameterCompletionCommandOffset() public méthode

public GetParameterCompletionCommandOffset ( int &cpos ) : bool
cpos int
Résultat bool

GetState() protected méthode

protected GetState ( ) : CSharpResolver
Résultat ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver

IsInsideCommentStringOrDirective() protected méthode

protected IsInsideCommentStringOrDirective ( ) : bool
Résultat bool

IsInsideCommentStringOrDirective() protected méthode

protected IsInsideCommentStringOrDirective ( int offset ) : bool
offset int
Résultat bool

IsInsideDocComment() protected méthode

protected IsInsideDocComment ( ) : bool
Résultat bool

ParseStub() protected méthode

protected ParseStub ( string continuation, bool appendSemicolon = true, string afterContinuation = null ) : SyntaxTree
continuation string
appendSemicolon bool
afterContinuation string
Résultat SyntaxTree

Reset() protected méthode

protected Reset ( ) : void
Résultat void

ResolveExpression() protected méthode

protected ResolveExpression ( AstNode expr ) : ExpressionResolveResult
expr AstNode
Résultat ExpressionResolveResult

ResolveExpression() protected méthode

protected ResolveExpression ( ExpressionResult tuple ) : ExpressionResolveResult
tuple ExpressionResult
Résultat ExpressionResolveResult

SetOffset() public méthode

public SetOffset ( int offset ) : void
offset int
Résultat void

Property Details

currentMember protected_oe property

protected IUnresolvedMember currentMember
Résultat IUnresolvedMember

currentType protected_oe property

protected IUnresolvedTypeDefinition currentType
Résultat IUnresolvedTypeDefinition

document protected_oe property

protected IDocument document
Résultat IDocument

location protected_oe property

protected TextLocation location
Résultat TextLocation

offset protected_oe property

protected int offset
Résultat int