C# Class AvalonStudio.Languages.CPlusPlus.CPlusPlusLanguageService

Inheritance: ILanguageService
ファイルを表示 Open project: VitalElement/AvalonStudio

Public Methods

Method Description
ApplyReplacements ( TextDocument document, int cursor, System.Xml.Linq.XDocument replacements, bool replaceCursor = true ) : int
CPlusPlusLanguageService ( ) : Avalonia.Input
CanHandle ( ISourceFile file ) : bool
CodeCompleteAtAsync ( ISourceFile file, int line, int column, List unsavedFiles, string filter ) : Task>
Comment ( TextDocument textDocument, ISegment segment, int caret = -1, bool format = true ) : int
Format ( TextDocument textDocument, uint offset, uint length, int cursor ) : int
GetBackgroundRenderers ( ISourceFile file ) : IList
GetDocumentLineTransformers ( ISourceFile file ) : IList
GetSymbolAsync ( ISourceFile file, List unsavedFiles, int offset ) : Task
GetSymbolsAsync ( ISourceFile file, List unsavedFiles, string name ) : Task>
RegisterSourceFile ( IIntellisenseControl intellisense, ICompletionAssistant completionAssistant, TextEditor editor, ISourceFile file, TextDocument doc ) : void
RunCodeAnalysisAsync ( ISourceFile file, List unsavedFiles, Func interruptRequested ) : Task
SignatureHelp ( ISourceFile file, UnsavedFile buffer, List unsavedFiles, int line, int column, int offset, string methodName ) : Task
UnComment ( TextDocument textDocument, ISegment segment, int caret = -1, bool format = true ) : int
UnregisterSourceFile ( TextEditor editor, ISourceFile file ) : void

Private Methods

Method Description
AddArgument ( List list, string argument ) : void
CloseBracket ( TextEditor editor, TextDocument document, string text ) : void
CreateOffsetData ( NClang cursor, NClang parent ) : OffsetSyntaxHighlightingData
CursorIsValidDeclaration ( ClangCursor c ) : bool
FindFunctions ( ClangCursor head, string name ) : List
FromClangKind ( NClang kind ) : CodeCompletionKind
GenerateTranslationUnit ( ISourceFile file, List unsavedFiles ) : ClangTranslationUnit
GetAndParseTranslationUnit ( ISourceFile sourceFile, List unsavedFiles ) : ClangTranslationUnit
GetAssociatedData ( ISourceFile sourceFile ) : CPlusPlusDataAssociation
IsBuiltInType ( ClangType cursor ) : bool
OpenBracket ( TextEditor editor, TextDocument document, string text ) : void
ScanTokens ( NClang tu, SyntaxHighlightDataList result ) : void
SignatureFromSymbol ( Symbol symbol ) : Signature
SymbolFromClangCursor ( ClangCursor cursor ) : Symbol

Method Details

ApplyReplacements() public static method

public static ApplyReplacements ( TextDocument document, int cursor, System.Xml.Linq.XDocument replacements, bool replaceCursor = true ) : int
document AvalonStudio.TextEditor.Document.TextDocument
cursor int
replacements System.Xml.Linq.XDocument
replaceCursor bool
return int

CPlusPlusLanguageService() public method

public CPlusPlusLanguageService ( ) : Avalonia.Input
return Avalonia.Input

CanHandle() public method

public CanHandle ( ISourceFile file ) : bool
file ISourceFile
return bool

CodeCompleteAtAsync() public method

public CodeCompleteAtAsync ( ISourceFile file, int line, int column, List unsavedFiles, string filter ) : Task>
file ISourceFile
line int
column int
unsavedFiles List
filter string
return Task>

Comment() public method

public Comment ( TextDocument textDocument, ISegment segment, int caret = -1, bool format = true ) : int
textDocument AvalonStudio.TextEditor.Document.TextDocument
segment ISegment
caret int
format bool
return int

Format() public method

public Format ( TextDocument textDocument, uint offset, uint length, int cursor ) : int
textDocument AvalonStudio.TextEditor.Document.TextDocument
offset uint
length uint
cursor int
return int

GetBackgroundRenderers() public method

public GetBackgroundRenderers ( ISourceFile file ) : IList
file ISourceFile
return IList

GetDocumentLineTransformers() public method

public GetDocumentLineTransformers ( ISourceFile file ) : IList
file ISourceFile
return IList

GetSymbolAsync() public method

public GetSymbolAsync ( ISourceFile file, List unsavedFiles, int offset ) : Task
file ISourceFile
unsavedFiles List
offset int
return Task

GetSymbolsAsync() public method

public GetSymbolsAsync ( ISourceFile file, List unsavedFiles, string name ) : Task>
file ISourceFile
unsavedFiles List
name string
return Task>

RegisterSourceFile() public method

public RegisterSourceFile ( IIntellisenseControl intellisense, ICompletionAssistant completionAssistant, TextEditor editor, ISourceFile file, TextDocument doc ) : void
intellisense IIntellisenseControl
completionAssistant ICompletionAssistant
editor TextEditor
file ISourceFile
doc AvalonStudio.TextEditor.Document.TextDocument
return void

RunCodeAnalysisAsync() public method

public RunCodeAnalysisAsync ( ISourceFile file, List unsavedFiles, Func interruptRequested ) : Task
file ISourceFile
unsavedFiles List
interruptRequested Func
return Task

SignatureHelp() public method

public SignatureHelp ( ISourceFile file, UnsavedFile buffer, List unsavedFiles, int line, int column, int offset, string methodName ) : Task
file ISourceFile
buffer UnsavedFile
unsavedFiles List
line int
column int
offset int
methodName string
return Task

UnComment() public method

public UnComment ( TextDocument textDocument, ISegment segment, int caret = -1, bool format = true ) : int
textDocument AvalonStudio.TextEditor.Document.TextDocument
segment ISegment
caret int
format bool
return int

UnregisterSourceFile() public method

public UnregisterSourceFile ( TextEditor editor, ISourceFile file ) : void
editor TextEditor
file ISourceFile
return void