Table of Contents

Class NetSyntaxParser

Namespace
Alternet.Syntax.Parsers.Advanced
Assembly
Alternet.Syntax.Parsers.Advanced.v9.dll

Represents properties and methods to perform syntax analysis of the text intended to use for NET. family of languages.

public class NetSyntaxParser : SyntaxParser, IComponent, IDisposable, ISyntaxParser, IParser, ILexer, INotify, IUpdate, IImport
Inheritance
NetSyntaxParser
Implements
Derived

Constructors

NetSyntaxParser()

Initializes a new instance of the NetSyntaxParser class with default settings.

Fields

ReswordStyle
XmlCommentStyle
prevPosition
savePrevPosition

Properties

CaseSensitive

Gets or sets a boolean value that indicates whether NetSyntaxParser should perform case-sensitive analysis of its content.

Comments
ExpressionEvaluator

Gets or sets an IExpressionEvaluator instance using to evaluate conditional defines.

LexerColors
XmlParser

Methods

AddAttribute(ISyntaxAttribute)
AddNameDeclaration(ISyntaxNode, Point, string, ISyntaxNode)
AddNode(ISyntaxNode)
AddTypeDeclaration(ISyntaxNode, Point, string, ISyntaxNode)
AddXmlNode(ISyntaxNode, ISyntaxNode, Point)
AfterDeclaration(ISyntaxNode)
AssignParser(ISyntaxParser)
BeforeDeclaration(ISyntaxNode)
ClearStack()
CodeCompletion(string, StringItemInfo[], Point, CodeCompletionArgs)

Performs code completion for the specified text representing language element.

CreateExpressionEvaluator()
CreateExpressionNode(Point, string, int, ISyntaxNode, bool)
CreateRepository()

Initializes a new instance of the ReflectionRepository class with default settings.

FindDeclaration(Point)

Finds the declaration node at given position.

FindReferences(Point, IRangeList, bool)

Locates declaration at given position and finds all references to this declaration in the text.

FindXmlNode(ISyntaxNode, string, string, string)
FinishParsing()

Commits parsing process.

FixupComments()
FixupRegions(ISyntaxNode)
FormatComment(string)
GetAutoFormatNode(Point, bool, out Point)

Obtains block node at specified position.

GetBlockNode(ISyntaxNode, Point)
GetCommentSummary(ISyntaxNode)
GetCompletionType(char)

Obtains type of code completion window from specifies char parameter.

GetContentDividers(ISyntaxNode, IList<int>)
GetContentDividers(IList<int>)

Gets list of content dividers.

GetFirstLineComment()
GetLastChild(ISyntaxNode)
GetSmartIndent(ISyntaxNode, int, ref int)
GetStructureGuideLines(IList<IRange>)

Gets list of guide lines.

GetValidNode(ISyntaxNode)
GetXmlComment()

Gets the string that represents start symbols of xml comment.

GetXmlComment(ISyntaxNode)
GetXmlDescription(ISyntaxNode, string, string, string)
InitStyles()
IsComment(int)
IsCommentEndAt(string, string, int)
IsCommentStartAt(string, string, int)
IsContentDivider(ISyntaxNode)
IsDeclaration(ISyntaxNode)

Indicates whether specified node is a declaration node (contains declaration of some syntax structure, such as class, namespace and so on).

LimitCommentText(string)
MoveNext()
ParseBlock()
ParseComment()
ParseDeclaration(ISyntaxNode)
ParseUnit()
ParseUnitBody()
ParseUsingDeclaration(ISyntaxNode)
ParseUsingList(ISyntaxNode)
ParseXmlComment(ISyntaxNode)
PositionChanged(int, int, int, int)

Changes positions of any syntax nodes and its elements located next to the specified position.

ProcessAutoComplete(string, Point, out string)

Checks whether end-of-block code needs inserting.

ProcessGuideLines(IList<IRange>, ISyntaxNode)
ProcessGuideLinesInternal(IList<IRange>)
RegisterAllAssemblies()

Registers all assemblies from the current application domain.

RegisterAssembly(Assembly)

Adds specified assembly for code completion to the repository's assembly list.

RegisterAssembly(string)

Adds specified assembly for code completion to the repository's assembly list.

RegisterDefaultAssemblies()

Registers some most frequently used assemblies.

RegisterNamespace(string)

Adds specified namespace to the repository's namespace list.

RegisterNamespace(string, string)

Adds specified namespace to the repository's namespace list.

RegisterObject(string, object)

Adds specified object for code completion to the repository's object list.

RegisterType(string, Type)

Adds specified type for code completion to the repository's type list.

RegisterType(string, Type, bool)

Adds specified type for code completion to the repository's type list.

ReparseBlock(ISyntaxNode, Point)
ReparseBlock(Point)

Reparses syntax block at specified position.

ReparseDeclaration(ISyntaxNode)
ReparseText()

Reparses entire text.

ReparseUsing(ISyntaxNode)
ReparseUsingList(ISyntaxNode)
ReparseXmlComment(ISyntaxNode)
Reset()

Resets NetSyntaxParser to the start position.

ResetAutoIndentChars()

Resets AutoIndentChars to the default value.

ResetCodeCompletionChars()

Resets CodeCompletionChars to the default value.

ResetCodeCompletionStopChars()

Resets CodeCompletionStopChars to the default value.

ResetOptions()

Resets Options to the default value.

RestoreState(bool)

Restores Parser state and position stored by SaveState method.

SaveState()

Saves current Parser state and position.

ShiftPoint(Point, Point)
ShouldOutlineCommentNode(ISyntaxNode)
ShouldSerializeAutoIndentChars()

Indicates whether the AutoIndentChars property should be persisted.

ShouldSerializeCodeCompletionChars()

Indicates whether the CodeCompletionChars property should be persisted.

ShouldSerializeCodeCompletionStopChars()

Indicates whether the CodeCompletionStopChars property should be persisted.

ShouldSerializeOptions()

Indicates whether the Options property should be persisted.

SmartFormatLine(int, string, StringItemInfo[], ITextUndoList, out bool)

Formats line according to the parser rules.

SyntaxError()
SyntaxError(Point, Point, string, string)
SyntaxError(string)
UnregisterAssembly(Assembly, bool)

Removes specified assembly from the repository's assembly list.

UnregisterAssembly(string, bool)

Removes specified assembly from the repository's assembly list.

UnregisterNamespace(string)

Removes specified namespace from the repository's namespace list.

UnregisterObject(string)

Removes specified object from the repository's object list.

UnregisterType(string)

Removes specified type from the repository's type list.

XmlToNetNodeType(int)