Table of Contents

Class JavaScriptParser

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

Represents a class that performs syntax and lexical analysis of specified Java Script code text.

[ToolboxBitmap(typeof(JavaScriptParser), "Images.JavaScriptParser.Icon.bmp")]
public class JavaScriptParser : SyntaxParser, IComponent, IDisposable, ISyntaxParser, IParser, ILexer, INotify, IUpdate, IImport
Inheritance
JavaScriptParser
Implements
Derived

Constructors

JavaScriptParser()

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

Fields

StateString
comments
lexCommentEndProc
lexCommentProc
lexDefineEndProc
lexDefineProc
lexIdentifierProc
lexNumberProc
lexStringEndProc
lexStringProc
lexSymbolProc
lexWhitespaceProc
lexXmlCommentProc
lexXmlCommentTagProc
prevPosition
reswords
savePrevPosition
stateComment
stateDefine
stateNormal
stateXmlComment
xmlParser

Properties

CaseSensitive

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

XmlParser

Methods

AddAttribute(ISyntaxAttribute)
AddNode(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.

CreateExpressionNode(Point, string, int, ISyntaxNode, bool)
CreateListMembers()
CreateParameterInfo()
CreateRepository()

Creates ICodeCompletionRepository to perform code completion functionality for this parser.

Expected(JavaScriptLexerToken)
Expected(JavaScriptLexerToken, JavaScriptLexerToken)
Expected(JavaScriptLexerToken[])
Expected(int)
FindXmlNode(ISyntaxNode, string, string, string)
FinishParsing()

Commits parsing process.

FixupComments()
GetAutoFormatNode(Point, bool, out Point)

Obtains block node at specified position.

GetCompletionType(char)

Obtains type of code completion window from specifies char parameter.

GetDescriptionTarget(ISyntaxNode)
GetExpressionType(ISyntaxNode, int, out Point)
GetLexerStyle(int)
GetSingleLineComment()

Gets the string that represents start symbol of single line comment.

GetStructureGuideLines(IList<IRange>)

Gets list of guide lines.

GetXmlComment()

Gets the string that represents start symbols of xml comment.

GetXmlComment(ISyntaxNode)
GetXmlCommentParent(ISyntaxNode)
GetXmlDescription(ISyntaxNode, string, string, string)
IdentifierExpected()
InitGlobalModules(IReflectionRepository)
InitLanguage()
InitLexer()
InitReswords()
InitStyles()
IsBuiltInType(int)
IsComment(int)
IsCommentEndAt(string, string, int)
IsDeclaration(ISyntaxNode)

Indicates whether specified node represents declaration elements.

IsIdentChar(char)
IsIdentifierToken(int)
IsRegExToken(int)
IsReswordToken(int)
IsSymbol(int)
IsValidReturnType(int)
IsValidToken(int)
IsXmlComment(int)
LexComment()
LexCommentEnd()
LexDefine()
LexDefineEnd()
LexHexNumber()
LexIdentifier()
LexNumber()
LexString()
LexStringEnd()
LexStringEnd(bool)
LexSymbol()
LexWhitespace()
LexXmlComment()
LexXmlCommentTag()
MoveNext()
ParseAdditiveExpression(ref ISyntaxNode)
ParseAndExpression(ref ISyntaxNode)
ParseArgument(ref ISyntaxNode)
ParseArgumentList(ref ISyntaxNode)
ParseArrayInitializerExpression(ref ISyntaxNode)
ParseBlock()
ParseBlockStatement()
ParseBreakStatement()
ParseCatchStatement()
ParseComment()
ParseConditionalAndExpression(ref ISyntaxNode)
ParseConditionalExpression(ref ISyntaxNode)
ParseConditionalOrExpression(ref ISyntaxNode)
ParseContinueStatement()
ParseDefaultBlock()
ParseDeleteExpression(ref ISyntaxNode)
ParseDoStatement()
ParseDoWhileStatement()
ParseElementAccess(ref ISyntaxNode)
ParseElseStatement()
ParseEmbeddedStatement()
ParseEqualityExpression(ref ISyntaxNode)
ParseExclusiveOrExpression(ref ISyntaxNode)
ParseExpression(ref ISyntaxNode)
ParseExpressionList(ref ISyntaxNode)
ParseExpressionStatement()
ParseFinallyStatement()
ParseForCondition()
ParseForInitializer()
ParseForIterator()
ParseForStatement()
ParseForeachInitializer()
ParseFunctionPrototypeExpression(ref ISyntaxNode)
ParseGetSetFunction(ISyntaxNode)
ParseIdentifier(out string)
ParseIfStatement()
ParseInclusiveOrExpression(ref ISyntaxNode)
ParseInvocationExpression(ref ISyntaxNode)
ParseLambdaExpression(ref ISyntaxNode)
ParseLambdaParameterDeclaration()
ParseMemberAccess(ref ISyntaxNode)
ParseMethodBody()
ParseMethodDeclaration()
ParseMethodDeclaration(ISyntaxNode)
ParseMultiplicativeExpression(ref ISyntaxNode)
ParseNewExpression(ref ISyntaxNode)
ParseParameterDeclaration()
ParseParameterListDeclaration()
ParseParameterListDeclaration(int, int)
ParseParenthesizedExpression(ref ISyntaxNode, bool)
ParseParenthesizedStatementExpression(ref ISyntaxNode)
ParsePostDecrementExpression(ref ISyntaxNode)
ParsePostIncrementExpression(ref ISyntaxNode)
ParsePrefixedUnaryExpression(ref ISyntaxNode)
ParsePrimaryExpression(ref ISyntaxNode)
ParseQualifiedIdentifier(out string)
ParseQualifiedTypeName(out string)
ParseRankSpecifier(out string)
ParseRegularExpression(ref ISyntaxNode)
ParseRelationalExpression(ref ISyntaxNode)
ParseReturnStatement()
ParseReturnStatement(NetNodeType)
ParseReturnType()
ParseShiftExpression(ref ISyntaxNode)
ParseSimpleExpression(ref ISyntaxNode)
ParseStatement(bool)
ParseStatementExpression()
ParseStatementExpressionList()
ParseStatementList(bool)
ParseStringExpression(out string)
ParseSwitchBlock()
ParseSwitchLabel()
ParseSwitchLabels()
ParseSwitchSection()
ParseSwitchStatement()
ParseThisAccess(ref ISyntaxNode)
ParseThrowStatement()
ParseTryStatement()
ParseType(out string)
ParseTypeExpression(ref ISyntaxNode)
ParseTypeName(out string)
ParseTypeofExpression(ref ISyntaxNode)
ParseUnaryExpression(ref ISyntaxNode)
ParseUnit()
ParseUnitBody()
ParseVariableDeclaration(ISyntaxAttributes, int)
ParseVariableDeclaration(ISyntaxAttributes, int, ref ISyntaxNode)
ParseVariableDeclarators()
ParseVariableInitializer(ref ISyntaxNode)
ParseWhileStatement()
ParseWithStatement()
ParseXmlComment(ISyntaxNode)
PositionChanged(int, int, int, int)

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

ProcessGuideLines(IList<IRange>, ISyntaxNode)
ProcessGuideLinesInternal(IList<IRange>)
RegExEnd()
ReparseBlock(Point)

Reparses syntax block at specified position.

ReparseText()

Reparses entire text.

Reset()

Resets JavaScriptSyntaxParser to the start position.

ResetAutoIndentChars()

Resets the AutoIndentChars to the default value.

ResetCodeCompletionChars()

Resets the CodeCompletionChars to the default value.

ResetCodeCompletionStopChars()

Resets the CodeCompletionStopChars to the default value.

ResetOptions()

Resets Options to the default value.

ResetSmartFormatChars()

Resets the SmartFormatChars to the default value.

RestoreState(bool)

Restores Parser state and position stored by SaveState method.

SaveState()

Saves current Parser state and position.

SemicolonNeeded()
SemicolonOrCommaNeeded()
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.

ShouldSerializeSmartFormatChars()

Indicates whether the SmartFormatChars property should be persisted.

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

Formats line according to the parser rules.

SyntaxError()
SyntaxError(Point, Point, string, string)
SyntaxError(int)
SyntaxError(string)
TryParseAssignmentExpression(ref ISyntaxNode)
TryParseLabeledStatement(out bool)
TryParseLambdaParameterOrExpression(ref ISyntaxNode, Point)
TryParsePostPrimaryExpression(ref ISyntaxNode)
TryParseRankSpecifiers(out string)
XmlToNetNodeType(int)