C# Class CompiledHandlebars.Compiler.Introspection.RoslynIntrospector

ファイルを表示 Open project: Noxum/CompiledHandlebars Class Usage Examples

Private Properties

Property Type Description
DoParametersMatch bool
DoesParameterMatchType bool

Public Methods

Method Description
GetBoolTypeSymbol ( ) : INamedTypeSymbol
GetHelperMethod ( string funtionName, List parameters ) : IMethodSymbol

Searches each referenced project for helper methods. These must serve following conditions: - correct name - be static - have a "CompiledHandlebarsHelperMethod" attribute - have matching parameters

GetIntTypeSymbol ( ) : INamedTypeSymbol
GetLayoutHbsTemplate ( string layoutName ) : INamedTypeSymbol
GetPartialHbsTemplate ( string templateName ) : INamedTypeSymbol
GetStringTypeSymbol ( ) : INamedTypeSymbol
GetTypeSymbol ( string fullTypeName ) : INamedTypeSymbol
RoslynIntrospector ( Microsoft.CodeAnalysis.Project project ) : System.Collections.Generic
RuntimeUtilsReferenced ( ) : bool

Private Methods

Method Description
DoParametersMatch ( IMethodSymbol methodSymbol, List parameters ) : bool
DoesParameterMatchType ( IParameterSymbol param, ITypeSymbol type ) : bool

Method Details

GetBoolTypeSymbol() public method

public GetBoolTypeSymbol ( ) : INamedTypeSymbol
return INamedTypeSymbol

GetHelperMethod() public method

Searches each referenced project for helper methods. These must serve following conditions: - correct name - be static - have a "CompiledHandlebarsHelperMethod" attribute - have matching parameters
public GetHelperMethod ( string funtionName, List parameters ) : IMethodSymbol
funtionName string Name of the Helper as declared in the handlebars-template
parameters List Types of the Parameters that are passed to the helper method
return IMethodSymbol

GetIntTypeSymbol() public method

public GetIntTypeSymbol ( ) : INamedTypeSymbol
return INamedTypeSymbol

GetLayoutHbsTemplate() public method

public GetLayoutHbsTemplate ( string layoutName ) : INamedTypeSymbol
layoutName string
return INamedTypeSymbol

GetPartialHbsTemplate() public method

public GetPartialHbsTemplate ( string templateName ) : INamedTypeSymbol
templateName string
return INamedTypeSymbol

GetStringTypeSymbol() public method

public GetStringTypeSymbol ( ) : INamedTypeSymbol
return INamedTypeSymbol

GetTypeSymbol() public method

public GetTypeSymbol ( string fullTypeName ) : INamedTypeSymbol
fullTypeName string
return INamedTypeSymbol

RoslynIntrospector() public method

public RoslynIntrospector ( Microsoft.CodeAnalysis.Project project ) : System.Collections.Generic
project Microsoft.CodeAnalysis.Project
return System.Collections.Generic

RuntimeUtilsReferenced() public method

public RuntimeUtilsReferenced ( ) : bool
return bool