C# Class NArrange.VisualBasic.VBParser

NArrange Visual Basic parser implementation.
Inheritance: NArrange.Core.CodeParser
Datei anzeigen Open project: MarcStan/NArrange Class Usage Examples

Protected Methods

Method Description
DoParseElements ( ) : List

Parses elements from the current point in the stream.

Private Methods

Method Description
CaptureTypeName ( ) : string

Captures an type name alias from the stream.

CaptureTypeName ( bool captureGeneric ) : string

Captures an type name alias from the stream.

CaptureWord ( ) : string

Captures an alias or keyword from the stream.

CaptureWord ( bool captureGeneric ) : string

Captures an alias or keyword from the stream.

CreateConstructor ( MethodElement methodElement ) : ConstructorElement

Creates a constructor from a method element.

EatLineContinuation ( ) : void

Eats a line continuation char(s).

EatLineContinuation ( StringBuilder builder ) : void

Eats a line continuations capturing the text into the specified string builder.

EatWord ( string word ) : void

Eats a word.

EatWord ( string word, string message ) : void

Eats a specific word.

GetAccess ( StringCollection wordList ) : CodeAccess

Gets the member or type access.

GetElementType ( StringCollection wordList, ElementType &elementType, TypeElementType &typeElementType ) : void

Gets the type of the element.

GetMemberAttributes ( StringCollection wordList ) : MemberModifiers

Gets the member attributes.

GetOperatorType ( StringCollection wordList ) : OperatorType

Gets the type of the operator.

IsAliasBreak ( char ch ) : bool

Determines whether or not the specified char is a VB special character that signals a break in an alias.

ParseAttribute ( ReadOnlyCollection comments ) : AttributeElement

Parses an attribute.

ParseAttribute ( ReadOnlyCollection comments, bool nested ) : AttributeElement

Parses an attribute.

ParseBlock ( string blockName ) : string

Parses a block.

ParseCommentLine ( ) : CommentElement

Parses a comment line.

ParseConditionDirective ( string line, bool &isIf ) : ConditionDirectiveElement

Parses a condition directive.

ParseDelegate ( CodeAccess access, MemberModifiers memberAttributes ) : DelegateElement

Parses a delegate.

ParseElements ( ICodeElement parentElement ) : List

Parses elements from the current point in the stream.

ParseEvent ( CodeAccess access, MemberModifiers memberAttributes, bool isCustom ) : EventElement

Parses an event.

ParseField ( StringCollection wordList, CodeAccess access, MemberModifiers memberAttributes, bool untypedAssignment ) : FieldElement

Parses a field.

ParseImport ( ) : UsingElement

Parses an import directive.

ParseInitialValue ( ) : string

Parses an initial value, such as for a field.

ParseMethod ( CodeAccess access, MemberModifiers memberAttributes, bool isFunction, bool isDelegate, bool isOperator, OperatorType operatorType, bool inInterface, bool isExternal, string externalModifier ) : MethodElement

Parses a method.

ParseNamespace ( ) : NamespaceElement

Parses a namespace definition.

ParseNestedText ( char beginChar, char endChar, bool beginExpected, bool trim ) : string

Parses nested text.

ParseOption ( ReadOnlyCollection comments ) : ICodeElement

Parses a VB Option directive from comments.

ParseParams ( ) : string

Parses a parameter list to a comma-separated string.

ParseProperty ( CodeAccess access, MemberModifiers memberAttributes, bool isDefault, string modifyAccess, bool inInterface ) : PropertyElement

Parses a property.

ParseRegion ( string line ) : RegionElement

Parses a region from the preprocessor line.

ParseType ( CodeAccess access, TypeModifiers typeAttributes, TypeElementType elementType ) : TypeElement

Parses a type definition.

ParseTypeParameterConstraint ( ) : string

Parses a type parameter constraint.

ParseTypeParameters ( IGenericElement genericElement ) : void

Parses type parameters.

PushComments ( List codeElements, List comments ) : void

Pushes the comments to code elements list.

ReadCodeLine ( ) : string

Reads a code line.

TryParseElement ( ICodeElement parentElement, StringBuilder elementBuilder, ReadOnlyCollection comments, ReadOnlyCollection attributes ) : ICodeElement

Tries to parse a code element.

TryParseImplements ( string &implements ) : string

Tries to parse an implements clause.

TryParseImplementsOrHandles ( string &implements, string &handles, bool parseHandles ) : string

Tries to parse implements and handles clauses.

Method Details

DoParseElements() protected method

Parses elements from the current point in the stream.
protected DoParseElements ( ) : List
return List