C# Класс NArrange.VisualBasic.VBWriteVisitor

Visits a tree of code elements for writing VB code.
Наследование: NArrange.Core.CodeWriteVisitor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
VBWriteVisitor ( TextWriter writer, CodeConfiguration configuration ) : System

Creates a new VBWriteVisitor.

VisitAttributeElement ( AttributeElement element ) : void

Processes an attribute element.

VisitCommentElement ( CommentElement comment ) : void

Writes a comment line.

VisitConditionDirectiveElement ( ConditionDirectiveElement element ) : void

Writes a condition directive element.

VisitConstructorElement ( ConstructorElement element ) : void

Processes a constructor element.

VisitDelegateElement ( DelegateElement element ) : void

Processes a delegate element.

VisitEventElement ( EventElement element ) : void

Processes an event element.

VisitFieldElement ( FieldElement element ) : void

Processes a field element.

VisitMethodElement ( MethodElement element ) : void

Processes a method element.

VisitNamespaceElement ( NamespaceElement element ) : void

Processes a namespace element.

VisitPropertyElement ( PropertyElement element ) : void

Processes a property element.

VisitTypeElement ( TypeElement element ) : void

Processes a type element.

VisitUsingElement ( UsingElement element ) : void

Processes a using element.

Защищенные методы

Метод Описание
WriteBlockChildren ( ICodeElement element ) : void

Writes children for a block element.

WriteRegionBeginDirective ( RegionElement element ) : void

Writes a starting region directive.

WriteRegionEndDirective ( RegionElement element ) : void

Writes an ending region directive.

Приватные методы

Метод Описание
GetTypeParent ( ICodeElement element ) : TypeElement

Gets the type parent.

WriteAccess ( CodeAccess codeAccess ) : void

Writes the member or type access.

WriteAttributes ( AttributedElement element ) : void

Writes a collection of element attributes.

WriteBeginBlock ( ) : void

Writes the begin block.

WriteBody ( TextCodeElement element ) : void

Writes the code element body text.

WriteEndBlock ( CodeElement codeElement ) : void

Writes the end block for an element.

WriteImplements ( ReadOnlyCollection interfaceReferences ) : void

Writes implements clauses.

WriteMemberAttributes ( MemberModifiers memberAttributes, bool overloads ) : void

Writes the member attributes.

WriteMethodType ( string returnType ) : void

Writes the type of the method.

WriteParameterList ( string paramList ) : void

Writes the parameter list.

WriteReturnType ( string returnType ) : void

Writes a member return type.

WriteTypeParameterConstraints ( TypeParameter typeParameter ) : void

Writes the type parameter constraints.

WriteTypeParameters ( IGenericElement genericElement ) : void

Writes the type parameters.

Описание методов

VBWriteVisitor() публичный Метод

Creates a new VBWriteVisitor.
public VBWriteVisitor ( TextWriter writer, CodeConfiguration configuration ) : System
writer System.IO.TextWriter Text writer.
configuration NArrange.Core.Configuration.CodeConfiguration Code configuration.
Результат System

VisitAttributeElement() публичный Метод

Processes an attribute element.
public VisitAttributeElement ( AttributeElement element ) : void
element NArrange.Core.CodeElements.AttributeElement Attribute code element.
Результат void

VisitCommentElement() публичный Метод

Writes a comment line.
public VisitCommentElement ( CommentElement comment ) : void
comment NArrange.Core.CodeElements.CommentElement The comment.
Результат void

VisitConditionDirectiveElement() публичный Метод

Writes a condition directive element.
public VisitConditionDirectiveElement ( ConditionDirectiveElement element ) : void
element NArrange.Core.CodeElements.ConditionDirectiveElement Condition directive code element.
Результат void

VisitConstructorElement() публичный Метод

Processes a constructor element.
public VisitConstructorElement ( ConstructorElement element ) : void
element NArrange.Core.CodeElements.ConstructorElement Constructor code element.
Результат void

VisitDelegateElement() публичный Метод

Processes a delegate element.
public VisitDelegateElement ( DelegateElement element ) : void
element NArrange.Core.CodeElements.DelegateElement Delegate code element.
Результат void

VisitEventElement() публичный Метод

Processes an event element.
public VisitEventElement ( EventElement element ) : void
element NArrange.Core.CodeElements.EventElement Event code element.
Результат void

VisitFieldElement() публичный Метод

Processes a field element.
public VisitFieldElement ( FieldElement element ) : void
element NArrange.Core.CodeElements.FieldElement Field code element.
Результат void

VisitMethodElement() публичный Метод

Processes a method element.
public VisitMethodElement ( MethodElement element ) : void
element NArrange.Core.CodeElements.MethodElement Method code element.
Результат void

VisitNamespaceElement() публичный Метод

Processes a namespace element.
public VisitNamespaceElement ( NamespaceElement element ) : void
element NArrange.Core.CodeElements.NamespaceElement Namespace code element.
Результат void

VisitPropertyElement() публичный Метод

Processes a property element.
public VisitPropertyElement ( PropertyElement element ) : void
element NArrange.Core.CodeElements.PropertyElement Property code element.
Результат void

VisitTypeElement() публичный Метод

Processes a type element.
public VisitTypeElement ( TypeElement element ) : void
element NArrange.Core.CodeElements.TypeElement Type code element.
Результат void

VisitUsingElement() публичный Метод

Processes a using element.
public VisitUsingElement ( UsingElement element ) : void
element NArrange.Core.CodeElements.UsingElement Using/Import directive code element.
Результат void

WriteBlockChildren() защищенный Метод

Writes children for a block element.
protected WriteBlockChildren ( ICodeElement element ) : void
element ICodeElement Block code element.
Результат void

WriteRegionBeginDirective() защищенный Метод

Writes a starting region directive.
protected WriteRegionBeginDirective ( RegionElement element ) : void
element NArrange.Core.CodeElements.RegionElement Region element.
Результат void

WriteRegionEndDirective() защищенный Метод

Writes an ending region directive.
protected WriteRegionEndDirective ( RegionElement element ) : void
element NArrange.Core.CodeElements.RegionElement Region element.
Результат void