Table of Contents

Class TypeScriptRepository

Namespace
Alternet.Syntax.Parsers.TypeScript.CodeCompletion
Assembly
Alternet.Syntax.Parsers.TypeScript.v9.dll

Represents properties and methods to perform code completion functionality for TpeScript language.

public class TypeScriptRepository : CodeCompletionRepository, ITypeScriptRepository, ICodeCompletionRepository, IDisposable
Inheritance
TypeScriptRepository
Implements

Constructors

TypeScriptRepository(ISyntaxParser, ITypeScriptProject, ScriptKind, bool)

Initializes a new instance of the TypeScriptRepository class with specified settings.

Properties

AlphaImages

Represents collection of alpha images used for code completion.

AlphaImagesHighDpi

Gets Alpha ImageList attached to this CodeCompletionRepository for high DPI.

DefaultExtension

Gets or sets a default extension of the code files.

FileName

Gets or sets file name of the file being parsed.

Images

Represents collection of images used for code completion.

ImagesHighDpi

Gets or sets ImageList for high DPI.

LexerColors
Parser

Gets a V8Parser provides syntax analysis for TypeScript document.

Project

Gets a ITypeScriptProject that contains document being parsed.

Methods

ApplyChanges(string, IEnumerable<TextChange>)
CalculateExtension()
CalculateFileName()
CanEvaluateSymbol(ScriptElementKind)
Dispose(bool)
FillCodeFixes(IEnumerable<ICodeFix>, ICodeActionItems)

When implemented by a class, fills codefix provider with list of available code fixes.

FillCodeRefactors(IEnumerable<ICodeRefactor>, ICodeActionItems)

When implemented by a class, fills code completion provider with list of available code refactors.

FillMembers(IEnumerable<CompletionEntry>, IListMembers, Point, out int)

Fills a provider with the members, providing available choices for the specified language element.

FillParameterInfo(SignatureHelpItems, IListMembers, Point)

Fills a provider with the parameter info members.

FindDeclarations(Point)

Locates all declarations at given position in the text.

FindReferences(Point)

Locates all references at given position in the text.

GetApplicableRefactors(Point, Point)

Gets applicable refactors at the given text range.

GetBreakpointStatementAtPosition(Point)

Gets breakpoint statement range at pecified position.

GetClassifications()

Gets a list of ClassifiedSpan for the document.

GetClassifications(int, int)

Gets list of classificators for the given document.

GetCodeFixesAtPosition(ISyntaxError)

Gets code fix at syntax error position.

GetCompletionsAtPosition(Point)

Gets the completions available at the caret position.

GetCustomFormattingOptions(FormatCodeOptions)
GetDiagnostics()

Gets a list of Diagnostic for the document.

GetDocCommentTemplateAtPosition(Point)

Gets the documentation comment template available at the caret position.

GetDocumentText(string)

Gets text of the specified document.

GetFormatOptions(bool, int)
GetFormattingEditsAfterKeystroke(int, string, bool, int, bool, out string)

Gets the text changes for the part of document accordingly to the formatting rules.

GetFormattingEditsForRange(int, int, bool, int, bool, out string)

Gets the text changes for the part of document accordingly to the formatting rules.

GetImageIndex(string)
GetIndentationAtPosition(Point, bool, int)

Gets line indentation at specified position.

GetLineAndCharacterOfPosition(int)

Converts given absolute text coordinate into Point position.

GetOccurrencesAtPosition(Point)

Locates all occurrences at given position in the text.

GetOutliningSpans()

Gets a list of OutliningSpan for the document.

GetPositionOfLineAndCharacter(Point)

Converts given position into absolute text coordinate.

GetQuickInfo(QuickInfo)
GetQuickInfo(object)

Returns information about the object.

GetQuickInfoAtPosition(Point)

Gets the quick info available at the caret position.

GetQuickInfoAtPosition(int)

Gets the quick info available at the caret position.

GetReferencesAtPosition(Point)

Locates all references at given position in the text.

GetSignatureHelpItems(Point)

Gets the signature help items available at the caret position.

GetSmartFormatSymbol(int)

Gets smart format node under a given position.

GetStructureGuideNode()

Gets structure nodes.

GetSyntaxTree()

Gets the syntax tree for the parsed document.

GetTextChangesForRefactor(ICodeRefactor)

Gets text changes for the code refactor.

HasDocument(string)

Indicates whether TypeScript project has document specified.

IsValidBraceCompletionAtPosition(Point, char, out char)

Determines if close brace code completion is expected.

LoadImages()
QuickInfo(Point)

Gets the quick info available at the caret position.

RegisterCodeFiles(string[])

Makes types declared in given source files accessible for code completion.

RemoveDocument(string)

Removes specified document from the project.

ReplaceDocument(string, string)

Updates source code document to have the text specified.

UnregisterCodeFiles(string[])

Removes types declared in given source files from being accessible code completion.

Events

CustomFormattingOptions

Occurs when text document is being formatted to provide custom formatting options.