Class JavaScriptParser
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
Properties
- CaseSensitive
Gets or sets a boolean value that indicates whether
JavaScriptParser
should perform case-sensitive analysis of its content.
Methods
- CodeCompletion(string, StringItemInfo[], Point, CodeCompletionArgs)
Performs code completion for the specified text representing language element.
- CreateRepository()
Creates
ICodeCompletionRepository
to perform code completion functionality for this parser.
- FinishParsing()
Commits parsing process.
- GetAutoFormatNode(Point, bool, out Point)
Obtains block node at specified position.
- GetCompletionType(char)
Obtains type of code completion window from specifies
char
parameter.
- 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.
- IsDeclaration(ISyntaxNode)
Indicates whether specified node represents declaration elements.
- PositionChanged(int, int, int, int)
Changes positions of any syntax nodes and its elements located next to the specified position.
- 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 bySaveState
method.
- SaveState()
Saves current
Parser
state and position.
- 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.
- SmartFormatLine(int, string, StringItemInfo[], ITextUndoList, out bool)
Formats line according to the parser rules.