C# Class Stiletto.Fody.Generators.ProviderBindingGenerator

Inheritance: Generator
Show file Open project: benjamin-bader/stiletto Class Usage Examples

Public Methods

Method Description
Generate ( IErrorReporter errorReporter ) : Mono.Cecil.TypeDefinition
GetKeyedCtor ( ) : KeyedCtor
ProviderBindingGenerator ( Mono.Cecil.ModuleDefinition moduleDefinition, References references, string key, string providerKey, TypeReference providedType ) : System.Linq
Validate ( IErrorReporter errorReporter ) : void

Private Methods

Method Description
EmitCtor ( Mono.Cecil.TypeDefinition providerBinding, FieldDefinition providerKeyField, FieldDefinition mustBeInjectableField ) : void
EmitGet ( Mono.Cecil.TypeDefinition providerBinding, MethodReference providerOfT_get, FieldDefinition delegateBindingField ) : void
EmitResolve ( Mono.Cecil.TypeDefinition providerBinding, FieldDefinition mustBeInjectableField, FieldDefinition providerKeyField, FieldDefinition delegateBindingField ) : void

Method Details

Generate() public method

public Generate ( IErrorReporter errorReporter ) : Mono.Cecil.TypeDefinition
errorReporter IErrorReporter
return Mono.Cecil.TypeDefinition

GetKeyedCtor() public method

public GetKeyedCtor ( ) : KeyedCtor
return KeyedCtor

ProviderBindingGenerator() public method

public ProviderBindingGenerator ( Mono.Cecil.ModuleDefinition moduleDefinition, References references, string key, string providerKey, TypeReference providedType ) : System.Linq
moduleDefinition Mono.Cecil.ModuleDefinition
references References
key string
providerKey string
providedType Mono.Cecil.TypeReference
return System.Linq

Validate() public method

public Validate ( IErrorReporter errorReporter ) : void
errorReporter IErrorReporter
return void