C# Class Microsoft.DocAsCode.Metadata.ManagedReference.VBYamlModelGenerator

Inheritance: SimpleYamlModelGenerator
Mostrar archivo Open project: dotnet/docfx

Public Methods

Method Description
DefaultVisit ( ISymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
GenerateEvent ( IEventSymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
GenerateField ( IFieldSymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
GenerateMethod ( IMethodSymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
GenerateNamedType ( INamedTypeSymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
GenerateProperty ( IPropertySymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
VBYamlModelGenerator ( ) : System

Protected Methods

Method Description
GenerateReference ( ISymbol symbol, ReferenceItem reference, SymbolVisitorAdapter adapter, bool asOverload ) : void
GetSyntaxContent ( MemberType typeKind, ISymbol symbol, SymbolVisitorAdapter adapter ) : string

Private Methods

Method Description
GetAttributeSyntax ( AttributeData attr ) : AttributeSyntax
GetAttributes ( ISymbol symbol, IFilterVisitor filterVisitor, bool inOneLine = false, bool isExtensionMethod = false ) : SyntaxList
GetClassSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetConstraintSyntaxes ( ITypeParameterSymbol symbol ) : IEnumerable
GetConstructorSyntax ( IMethodSymbol symbol, IFilterVisitor filterVisitor ) : string
GetDefaultValue ( IFieldSymbol symbol ) : EqualsValueSyntax
GetDefaultValue ( IParameterSymbol symbol ) : EqualsValueSyntax
GetDefaultValueCore ( object value, ITypeSymbol type ) : EqualsValueSyntax
GetDelegateSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetEnumSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetEnumUnderlyingType ( INamedTypeSymbol symbol ) : AsClauseSyntax
GetEventSyntax ( IEventSymbol symbol, IFilterVisitor filterVisitor ) : string
GetFieldSyntax ( IFieldSymbol symbol, IFilterVisitor filterVisitor ) : string
GetIdentifier ( ITypeSymbol type ) : SyntaxToken
GetImplementsClause ( IEventSymbol symbol, IFilterVisitor filterVisitor ) : ImplementsClauseSyntax
GetImplementsClause ( IMethodSymbol symbol, IFilterVisitor filterVisitor ) : ImplementsClauseSyntax
GetImplementsClause ( IPropertySymbol symbol, IFilterVisitor filterVisitor ) : ImplementsClauseSyntax
GetImplementsList ( INamedTypeSymbol symbol ) : SyntaxList
GetInheritsList ( INamedTypeSymbol symbol ) : SyntaxList
GetInterfaceSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetLiteralExpression ( TypedConstant constant ) : ExpressionSyntax
GetLiteralExpression ( object value, ITypeSymbol type ) : ExpressionSyntax
GetLiteralExpressionCore ( object value, ITypeSymbol type ) : ExpressionSyntax
GetMemberModifiers ( IEventSymbol symbol ) : IEnumerable
GetMemberModifiers ( IFieldSymbol symbol ) : IEnumerable
GetMemberModifiers ( IMethodSymbol symbol ) : IEnumerable
GetMemberModifiers ( IPropertySymbol symbol ) : IEnumerable
GetMethodSyntax ( IMethodSymbol symbol, IFilterVisitor filterVisitor ) : string
GetOperatorSyntax ( IMethodSymbol symbol, IFilterVisitor filterVisitor ) : string
GetOperatorToken ( IMethodSymbol symbol ) : SyntaxToken?
GetParamerterList ( IMethodSymbol symbol ) : ParameterListSyntax
GetParamerterList ( IPropertySymbol symbol ) : ParameterListSyntax
GetParameterModifiers ( IParameterSymbol symbol ) : IEnumerable
GetPropertySyntax ( IPropertySymbol symbol, IFilterVisitor filterVisitor ) : string
GetQualifiedNameSyntax ( ITypeSymbol type ) : NameSyntax
GetReturnAsClause ( IMethodSymbol symbol ) : SimpleAsClauseSyntax
GetStructSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetTypeModifiers ( INamedTypeSymbol symbol ) : IEnumerable
GetTypeParameterConstraintClauseSyntax ( ITypeParameterSymbol symbol ) : TypeParameterConstraintClauseSyntax
GetTypeParameters ( IMethodSymbol symbol ) : TypeParameterListSyntax
GetTypeParameters ( INamedTypeSymbol symbol ) : TypeParameterListSyntax
GetTypeSyntax ( ITypeSymbol type ) : TypeSyntax
GetVarianceToken ( ITypeParameterSymbol t ) : SyntaxToken
GetVisiblity ( Accessibility accessibility ) : string
HasFlag ( ITypeSymbol type, object value, object constantValue ) : bool
RemoveEnd ( string code ) : string

Method Details

DefaultVisit() public method

public DefaultVisit ( ISymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
symbol ISymbol
item MetadataItem
adapter SymbolVisitorAdapter
return void

GenerateEvent() public method

public GenerateEvent ( IEventSymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
symbol IEventSymbol
item MetadataItem
adapter SymbolVisitorAdapter
return void

GenerateField() public method

public GenerateField ( IFieldSymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
symbol IFieldSymbol
item MetadataItem
adapter SymbolVisitorAdapter
return void

GenerateMethod() public method

public GenerateMethod ( IMethodSymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
symbol IMethodSymbol
item MetadataItem
adapter SymbolVisitorAdapter
return void

GenerateNamedType() public method

public GenerateNamedType ( INamedTypeSymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
symbol INamedTypeSymbol
item MetadataItem
adapter SymbolVisitorAdapter
return void

GenerateProperty() public method

public GenerateProperty ( IPropertySymbol symbol, MetadataItem item, SymbolVisitorAdapter adapter ) : void
symbol IPropertySymbol
item MetadataItem
adapter SymbolVisitorAdapter
return void

GenerateReference() protected method

protected GenerateReference ( ISymbol symbol, ReferenceItem reference, SymbolVisitorAdapter adapter, bool asOverload ) : void
symbol ISymbol
reference ReferenceItem
adapter SymbolVisitorAdapter
asOverload bool
return void

GetSyntaxContent() protected method

protected GetSyntaxContent ( MemberType typeKind, ISymbol symbol, SymbolVisitorAdapter adapter ) : string
typeKind MemberType
symbol ISymbol
adapter SymbolVisitorAdapter
return string

VBYamlModelGenerator() public method

public VBYamlModelGenerator ( ) : System
return System