Class VbParser
Represents a class that performs syntax and lexical analysis of specified Visual Basic.NET code text.
public class VbParser : NetSyntaxParser, IComponent, IDisposable, ISyntaxParser, IParser, ILexer, INotify, IUpdate, IImport
- Inheritance
-
VbParser
- Implements
- Derived
Constructors
- VbParser()
Initializes a new instance of the
VbParser
class with default settings.
Fields
Properties
- CaseSensitive
Gets or sets a boolean value that indicates whether
VbParser
should perform case-sensitive analysis of its content.
Methods
- CreateRepository()
Creates
ICodeCompletionRepository
to perform code completion functionality for this parser.
- GetCompletionType(char)
Obtains type of code completion window from specifies
char
parameter.
- GetSingleLineComment()
Gets the string that represents start symbol of single line comment.
- GetXmlComment()
Gets the string that represents start symbols of xml comment.
- IsCodeCompletionChar(char, byte, ref int)
Returns boolean value indicating that given character initializes a code completion procedure when typing.
- NextToken()
Parses text from current position to the next token and updates
TokenPos
,CurrentPos
andTokenString
properties.
- ProcessAutoComplete(string, Point, out string)
Checks whether end-of-block code needs inserting.
- ReparseBlock(Point)
Reparses syntax block at specified position.
- ReparseBlock(ref Point, string, out ISyntaxNode, CodeCompletionType)
Reparses syntax block at specified position.
- Reset()
Resets
Parser
to the start position.
- ResetCodeCompletionChars()
Resets the
CodeCompletionChars
to the default value.
- ResetOptions()
Resets
Options
to the default value.
- ResetSmartFormatChars()
Resets
SmartFormatChars
to the default value.
- ShouldSerializeCodeCompletionChars()
Indicates whether the
CodeCompletionChars
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.
- SupportsContentDividers()
Indicates whether content dividers are supported.