C# Класс MonoDevelop.CSharp.Completion.CSharpTextEditorCompletion

Наследование: MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension, IPathedDocument
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddAsCompletionData void
AddDelegateHandlers string
AddNRefactoryKeywords void
AddPrimitiveTypes void
AddVirtuals void
AppendMethodComment void
AppendPropertyComment void
AppendSummary void
ContainsDeclaration bool
CreateCaseCompletionData ICompletionDataList
CreateCompletionData ICompletionDataList
CreateCtrlSpaceCompletionData CompletionDataList
CreateResolver NRefactoryResolver
CreateTypeCompletionData CompletionDataList
FindExpression MonoDevelop.Projects.Dom.ExpressionResult
FindExpression MonoDevelop.Projects.Dom.ExpressionResult
GenerateBody string
GetDeclaration IMethod
GetDefineCompletionData CompletionDataList
GetDirectiveCompletionData CompletionDataList
GetMemberStartPosition int
GetOverrideCompletionData CompletionDataList
GetPartialCompletionData CompletionDataList
GetPreviousToken string
GetTextWithoutCommentsAndStrings int>>.IEnumerable
GetUsedNamespaces List
GetXmlDocumentationCompletionData CompletionDataList
InitTracker void
IsInsideClassBody bool
MatchDelegate bool
StripGenerics string
UpdatePath void

Открытые методы

Метод Описание
AddEnumMembers ( CompletionDataList completionList, IType resolvedType ) : void
CSharpTextEditorCompletion ( ) : System
CSharpTextEditorCompletion ( Document doc ) : System
CodeCompletionCommand ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext ) : ICompletionDataList
CreateParameterCompletion ( NRefactoryResolver resolver, DomLocation location, MonoDevelop.Projects.Dom.ExpressionContext context, IEnumerable possibleMethods, int parameter ) : CompletionDataList
CreatePathWidget ( int index ) : Gtk.Widget
ExtendsEditor ( MonoDevelop doc, IEditableTextBuffer editor ) : bool
GetParameterCompletionCommandOffset ( int &cpos ) : bool
GetPreviousMemberReferenceExpression ( int tokenIndex ) : string
HandleCodeCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, char completionChar, int &triggerWordLength ) : ICompletionDataList
HandleKeywordCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, MonoDevelop.Projects.Dom.ExpressionResult result, int wordStart, string word ) : ICompletionDataList
HandleParameterCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, char completionChar ) : IParameterDataProvider
Initialize ( ) : void
IsInLinqContext ( MonoDevelop.Projects.Dom.ExpressionResult result ) : bool
KeyPress ( Gdk key, char keyChar, Gdk modifier ) : bool

Защищенные методы

Метод Описание
OnPathChanged ( MonoDevelop.Ide.Gui.Content.DocumentPathChangedEventArgs e ) : void

Приватные методы

Метод Описание
AddAsCompletionData ( CompletionDataCollector col, IType type ) : void

Adds a type to completion list. If it's a simple type like System.String it adds the simple C# type name "string" as well.

AddDelegateHandlers ( CompletionDataList completionList, IType delegateType, bool addSemicolon = true, bool addDefault = true ) : string
AddNRefactoryKeywords ( CompletionDataCollector col, System keywords ) : void
AddPrimitiveTypes ( CompletionDataCollector col ) : void
AddVirtuals ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext ctx, bool>.Dictionary alreadyInserted, CompletionDataList completionList, IType type, string modifiers, IReturnType curType ) : void
AppendMethodComment ( StringBuilder builder, string indent, IMethod method ) : void
AppendPropertyComment ( StringBuilder builder, string indent, IProperty property ) : void
AppendSummary ( StringBuilder sb, string indent, int &newCursorOffset ) : void
ContainsDeclaration ( IType type, IMethod method ) : bool
CreateCaseCompletionData ( DomLocation location, MonoDevelop.Projects.Dom.ExpressionResult expressionResult ) : ICompletionDataList
CreateCompletionData ( DomLocation location, MonoDevelop.Projects.Dom.ResolveResult resolveResult, MonoDevelop.Projects.Dom.ExpressionResult expressionResult, NRefactoryResolver resolver ) : ICompletionDataList
CreateCtrlSpaceCompletionData ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext ctx, MonoDevelop.Projects.Dom.ExpressionResult expressionResult ) : CompletionDataList
CreateResolver ( ) : NRefactoryResolver
CreateTypeCompletionData ( DomLocation location, IType callingType, MonoDevelop.Projects.Dom.ExpressionContext context, IReturnType returnType, IReturnType returnTypeUnresolved ) : CompletionDataList
FindExpression ( MonoDevelop.Projects.Dom.Parser.ProjectDom dom, MonoDevelop.Ide.CodeCompletion.CodeCompletionContext ctx ) : MonoDevelop.Projects.Dom.ExpressionResult
FindExpression ( MonoDevelop.Projects.Dom.Parser.ProjectDom dom, MonoDevelop.Ide.CodeCompletion.CodeCompletionContext ctx, int offset ) : MonoDevelop.Projects.Dom.ExpressionResult
GenerateBody ( IType c, int line, string indent, int &newCursorOffset ) : string
GetDeclaration ( IType type, IMethod method ) : IMethod
GetDefineCompletionData ( ) : CompletionDataList
GetDirectiveCompletionData ( ) : CompletionDataList
GetMemberStartPosition ( IMember mem ) : int
GetOverrideCompletionData ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext ctx, IType type, string modifiers ) : CompletionDataList
GetPartialCompletionData ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext ctx, IType type, string modifiers ) : CompletionDataList
GetPreviousToken ( int &i, bool allowLineChange ) : string
GetTextWithoutCommentsAndStrings ( Mono doc, int start, int end ) : int>>.IEnumerable
GetUsedNamespaces ( ) : List
GetXmlDocumentationCompletionData ( ) : CompletionDataList
InitTracker ( ) : void
IsInsideClassBody ( IType insideClass, int line, int column ) : bool
MatchDelegate ( IType delegateType, IMethod method ) : bool
StripGenerics ( string str ) : string
UpdatePath ( object sender, Mono e ) : void

Описание методов

AddEnumMembers() публичный Метод

public AddEnumMembers ( CompletionDataList completionList, IType resolvedType ) : void
completionList CompletionDataList
resolvedType IType
Результат void

CSharpTextEditorCompletion() публичный Метод

public CSharpTextEditorCompletion ( ) : System
Результат System

CSharpTextEditorCompletion() публичный Метод

public CSharpTextEditorCompletion ( Document doc ) : System
doc Document
Результат System

CodeCompletionCommand() публичный Метод

public CodeCompletionCommand ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext ) : ICompletionDataList
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
Результат ICompletionDataList

CreateParameterCompletion() публичный Метод

public CreateParameterCompletion ( NRefactoryResolver resolver, DomLocation location, MonoDevelop.Projects.Dom.ExpressionContext context, IEnumerable possibleMethods, int parameter ) : CompletionDataList
resolver NRefactoryResolver
location DomLocation
context MonoDevelop.Projects.Dom.ExpressionContext
possibleMethods IEnumerable
parameter int
Результат CompletionDataList

CreatePathWidget() публичный Метод

public CreatePathWidget ( int index ) : Gtk.Widget
index int
Результат Gtk.Widget

ExtendsEditor() публичный Метод

public ExtendsEditor ( MonoDevelop doc, IEditableTextBuffer editor ) : bool
doc MonoDevelop
editor IEditableTextBuffer
Результат bool

GetParameterCompletionCommandOffset() публичный Метод

public GetParameterCompletionCommandOffset ( int &cpos ) : bool
cpos int
Результат bool

GetPreviousMemberReferenceExpression() публичный Метод

public GetPreviousMemberReferenceExpression ( int tokenIndex ) : string
tokenIndex int
Результат string

HandleCodeCompletion() публичный Метод

public HandleCodeCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, char completionChar, int &triggerWordLength ) : ICompletionDataList
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
completionChar char
triggerWordLength int
Результат ICompletionDataList

HandleKeywordCompletion() публичный Метод

public HandleKeywordCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, MonoDevelop.Projects.Dom.ExpressionResult result, int wordStart, string word ) : ICompletionDataList
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
result MonoDevelop.Projects.Dom.ExpressionResult
wordStart int
word string
Результат ICompletionDataList

HandleParameterCompletion() публичный Метод

public HandleParameterCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, char completionChar ) : IParameterDataProvider
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
completionChar char
Результат IParameterDataProvider

Initialize() публичный Метод

public Initialize ( ) : void
Результат void

IsInLinqContext() публичный Метод

public IsInLinqContext ( MonoDevelop.Projects.Dom.ExpressionResult result ) : bool
result MonoDevelop.Projects.Dom.ExpressionResult
Результат bool

KeyPress() публичный Метод

public KeyPress ( Gdk key, char keyChar, Gdk modifier ) : bool
key Gdk
keyChar char
modifier Gdk
Результат bool

OnPathChanged() защищенный Метод

protected OnPathChanged ( MonoDevelop.Ide.Gui.Content.DocumentPathChangedEventArgs e ) : void
e MonoDevelop.Ide.Gui.Content.DocumentPathChangedEventArgs
Результат void