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

Inheritance: SimpleYamlModelGenerator
Mostrar archivo Open project: dotnet/docfx

Public Methods

Method Description
CSYamlModelGenerator ( ) : System
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
GetLiteralExpressionCore ( object value, ITypeSymbol type ) : ExpressionSyntax

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 ) : Microsoft.CodeAnalysis.CSharp.Syntax.AttributeSyntax
GetAttributes ( ISymbol symbol, IFilterVisitor filterVisitor, bool inOneLine = false ) : SyntaxList
GetBaseTypeList ( INamedTypeSymbol symbol ) : BaseListSyntax
GetClassSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetConstructorSyntax ( IMethodSymbol symbol, IFilterVisitor filterVisitor ) : string
GetDefaultValueClause ( IFieldSymbol symbol ) : Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax
GetDefaultValueClause ( IParameterSymbol symbol ) : Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax
GetDefaultValueClauseCore ( object value, ITypeSymbol type ) : Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax
GetDelegateSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetEiiContainerTypeName ( IEventSymbol symbol, IFilterVisitor filterVisitor ) : string
GetEiiContainerTypeName ( IMethodSymbol symbol, IFilterVisitor filterVisitor ) : string
GetEiiContainerTypeName ( IPropertySymbol symbol, IFilterVisitor filterVisitor ) : string
GetEnumBaseTypeList ( INamedTypeSymbol symbol ) : BaseListSyntax
GetEnumSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetEventSyntax ( IEventSymbol symbol, IFilterVisitor filterVisitor ) : string
GetFieldSyntax ( IFieldSymbol symbol, IFilterVisitor filterVisitor ) : string
GetInterfaceSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetLiteralExpression ( TypedConstant constant ) : ExpressionSyntax
GetLiteralExpression ( object value, ITypeSymbol type ) : ExpressionSyntax
GetMemberModifiers ( IEventSymbol symbol ) : IEnumerable
GetMemberModifiers ( IFieldSymbol symbol ) : IEnumerable
GetMemberModifiers ( IMethodSymbol symbol ) : IEnumerable
GetMemberModifiers ( IPropertySymbol symbol ) : IEnumerable
GetMemberName ( IEventSymbol symbol, IFilterVisitor filterVisitor ) : string
GetMemberName ( IMethodSymbol symbol, IFilterVisitor filterVisitor ) : string
GetMemberName ( IPropertySymbol symbol, IFilterVisitor filterVisitor ) : string
GetMethodSyntax ( IMethodSymbol symbol, IFilterVisitor filterVisitor ) : string
GetOperatorSyntax ( IMethodSymbol symbol, IFilterVisitor filterVisitor ) : string
GetOperatorToken ( IMethodSymbol symbol ) : SyntaxToken?
GetParameter ( IParameterSymbol p, IFilterVisitor filterVisitor, bool isThisParameter = false ) : Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax
GetParameterModifiers ( IParameterSymbol parameter, bool isThisParameter ) : IEnumerable
GetPropertyAccessorCore ( IPropertySymbol propertySymbol, IMethodSymbol methodSymbol, SyntaxKind kind, SyntaxKind keyword, IFilterVisitor filterVisitor ) : Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax
GetPropertyAccessors ( IPropertySymbol propertySymbol, IFilterVisitor filterVisitor ) : IEnumerable
GetPropertySyntax ( IPropertySymbol symbol, IFilterVisitor filterVisitor ) : string
GetStructSyntax ( INamedTypeSymbol symbol, IFilterVisitor filterVisitor ) : string
GetTypeModifiers ( INamedTypeSymbol symbol ) : IEnumerable
GetTypeParameterConstraint ( ITypeParameterSymbol symbol ) : IEnumerable
GetTypeParameterConstraints ( IMethodSymbol symbol ) : IEnumerable
GetTypeParameterConstraints ( INamedTypeSymbol symbol ) : IEnumerable
GetTypeParameters ( IMethodSymbol symbol ) : TypeParameterListSyntax
GetTypeParameters ( INamedTypeSymbol symbol ) : TypeParameterListSyntax
GetTypeSyntax ( ITypeSymbol type ) : Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax
GetVarianceToken ( ITypeParameterSymbol t ) : SyntaxToken
GetVisiblity ( Accessibility accessibility ) : string
HasFlag ( ITypeSymbol type, object value, object constantValue ) : bool
RemoveBraces ( string text ) : string

Method Details

CSYamlModelGenerator() public method

public CSYamlModelGenerator ( ) : System
return System

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

GetLiteralExpressionCore() public static method

public static GetLiteralExpressionCore ( object value, ITypeSymbol type ) : ExpressionSyntax
value object
type ITypeSymbol
return ExpressionSyntax

GetSyntaxContent() protected method

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