C# Class AvalonStudio.Languages.CPlusPlus.CPlusPlusLanguageService

Inheritance: ILanguageService
Afficher le fichier Open project: VitalElement/AvalonStudio

Méthodes publiques

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

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

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

CPlusPlusLanguageService() public méthode

public CPlusPlusLanguageService ( ) : Avalonia.Input
Résultat Avalonia.Input

CanHandle() public méthode

public CanHandle ( ISourceFile file ) : bool
file ISourceFile
Résultat bool

CodeCompleteAtAsync() public méthode

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

Comment() public méthode

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

Format() public méthode

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

GetBackgroundRenderers() public méthode

public GetBackgroundRenderers ( ISourceFile file ) : IList
file ISourceFile
Résultat IList

GetDocumentLineTransformers() public méthode

public GetDocumentLineTransformers ( ISourceFile file ) : IList
file ISourceFile
Résultat IList

GetSymbolAsync() public méthode

public GetSymbolAsync ( ISourceFile file, List unsavedFiles, int offset ) : Task
file ISourceFile
unsavedFiles List
offset int
Résultat Task

GetSymbolsAsync() public méthode

public GetSymbolsAsync ( ISourceFile file, List unsavedFiles, string name ) : Task>
file ISourceFile
unsavedFiles List
name string
Résultat Task>

RegisterSourceFile() public méthode

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

RunCodeAnalysisAsync() public méthode

public RunCodeAnalysisAsync ( ISourceFile file, List unsavedFiles, Func interruptRequested ) : Task
file ISourceFile
unsavedFiles List
interruptRequested Func
Résultat Task

SignatureHelp() public méthode

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

UnComment() public méthode

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

UnregisterSourceFile() public méthode

public UnregisterSourceFile ( TextEditor editor, ISourceFile file ) : void
editor TextEditor
file ISourceFile
Résultat void