Class JavaScriptParser
Represents a class that performs syntax and lexical analysis of specified Java Script code text.
public class JavaScriptParser : SyntaxParser, IComponent, IDisposable, ISyntaxParser, IParser, ILexer, INotify, IUpdate, IImport
- Inheritance
-
JavaScriptParser
- Implements
- Derived
Constructors
- JavaScriptParser()
Initializes a new instance of the
JavaScriptParserclass with default settings.
Fields
Properties
- CaseSensitive
Gets or sets a boolean value that indicates whether
JavaScriptParsershould 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
ICodeCompletionRepositoryto perform code completion functionality for this parser.
- GetAutoFormatNode(Point, bool, out Point)
Obtains block node at specified position.
- GetCompletionType(char)
Obtains type of code completion window from specifies
charparameter.
- 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.
- ReparseBlock(Point)
Reparses syntax block at specified position.
- ReparseText()
Reparses entire text.
- Reset()
Resets
JavaScriptSyntaxParserto the start position.
- ResetAutoIndentChars()
Resets the
AutoIndentCharsto the default value.
- ResetCodeCompletionChars()
Resets the
CodeCompletionCharsto the default value.
- ResetCodeCompletionStopChars()
Resets the
CodeCompletionStopCharsto the default value.
- ResetOptions()
Resets
Optionsto the default value.
- ResetSmartFormatChars()
Resets the
SmartFormatCharsto the default value.
- RestoreState(bool)
Restores
Parserstate and position stored bySaveStatemethod.
- SaveState()
Saves current
Parserstate and position.
- ShouldSerializeAutoIndentChars()
Indicates whether the
AutoIndentCharsproperty should be persisted.
- ShouldSerializeCodeCompletionChars()
Indicates whether the
CodeCompletionCharsproperty should be persisted.
- ShouldSerializeCodeCompletionStopChars()
Indicates whether the
CodeCompletionStopCharsproperty should be persisted.
- ShouldSerializeOptions()
Indicates whether the
Optionsproperty should be persisted.
- ShouldSerializeSmartFormatChars()
Indicates whether the
SmartFormatCharsproperty should be persisted.
- SmartFormatLine(int, string, StringItemInfo[], ITextUndoList, out bool)
Formats line according to the parser rules.