C# Class MonoDevelop.CSharp.Completion.CSharpTextEditorCompletion

Inheritance: MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension, IPathedDocument
Datei anzeigen Open project: slluis/monodevelop Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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

Protected Methods

Method Description
OnPathChanged ( MonoDevelop.Ide.Gui.Content.DocumentPathChangedEventArgs e ) : void

Private Methods

Method Description
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

Method Details

AddEnumMembers() public method

public AddEnumMembers ( CompletionDataList completionList, IType resolvedType ) : void
completionList CompletionDataList
resolvedType IType
return void

CSharpTextEditorCompletion() public method

public CSharpTextEditorCompletion ( ) : System
return System

CSharpTextEditorCompletion() public method

public CSharpTextEditorCompletion ( Document doc ) : System
doc Document
return System

CodeCompletionCommand() public method

public CodeCompletionCommand ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext ) : ICompletionDataList
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
return ICompletionDataList

CreateParameterCompletion() public method

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
return CompletionDataList

CreatePathWidget() public method

public CreatePathWidget ( int index ) : Gtk.Widget
index int
return Gtk.Widget

ExtendsEditor() public method

public ExtendsEditor ( MonoDevelop doc, IEditableTextBuffer editor ) : bool
doc MonoDevelop
editor IEditableTextBuffer
return bool

GetParameterCompletionCommandOffset() public method

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

GetPreviousMemberReferenceExpression() public method

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

HandleCodeCompletion() public method

public HandleCodeCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, char completionChar, int &triggerWordLength ) : ICompletionDataList
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
completionChar char
triggerWordLength int
return ICompletionDataList

HandleKeywordCompletion() public method

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
return ICompletionDataList

HandleParameterCompletion() public method

public HandleParameterCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, char completionChar ) : IParameterDataProvider
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
completionChar char
return IParameterDataProvider

Initialize() public method

public Initialize ( ) : void
return void

IsInLinqContext() public method

public IsInLinqContext ( MonoDevelop.Projects.Dom.ExpressionResult result ) : bool
result MonoDevelop.Projects.Dom.ExpressionResult
return bool

KeyPress() public method

public KeyPress ( Gdk key, char keyChar, Gdk modifier ) : bool
key Gdk
keyChar char
modifier Gdk
return bool

OnPathChanged() protected method

protected OnPathChanged ( MonoDevelop.Ide.Gui.Content.DocumentPathChangedEventArgs e ) : void
e MonoDevelop.Ide.Gui.Content.DocumentPathChangedEventArgs
return void