C# Class nHydrate.Dsl.nHydrateDirectiveProcessorBase

Base implementation for template directive processor that provides nHydrate files
Inheritance: VSTextTemplating::RequiresProvidesDirectiveProcessor
Afficher le fichier Open project: nHydrate/nHydrate

Méthodes publiques

Méthode Description
GetImportsForProcessingRun ( ) : string[]

Return namespace imports necessary for running template

GetReferencesForProcessingRun ( ) : string[]

Get assembly references needed for running template

IsDirectiveSupported ( string directiveName ) : bool

Check if the directive name is supported by this directive processor

StartProcessingRun ( global languageProvider, string templateContents, global errors ) : void

Override StartProcessingRun to reset the helpers flag.

nHydrateDirectiveProcessorBase ( )

Constructor

Méthodes protégées

Méthode Description
GeneratePreInitializationCode ( string directiveName, global codeBuffer, global languageProvider, string>.global requiresArguments, string>.global providesArguments ) : void

Contribute additively to initialization code for the TextTransformation generated class.

This code will be added before the call to the base class.

InitializeProvidesDictionary ( string directiveName, string>.global providesDictionary ) : void

Override to initialize provides dictinoary

InitializeRequiresDictionary ( string directiveName, string>.global requiresDictionary ) : void

Override to initialize requires dictionary

PostProcessArguments ( string directiveName, string>.global requiresArguments, string>.global providesArguments ) : void

Process arguments

Private Methods

Méthode Description
GeneratePostInitializationCode ( string directiveName, global codeBuffer, global languageProvider, string>.global requiresArguments, string>.global providesArguments ) : void
GenerateTransformCode ( string directiveName, global codeBuffer, global languageProvider, string>.global requiresArguments, string>.global providesArguments ) : void

Method Details

GeneratePreInitializationCode() protected méthode

Contribute additively to initialization code for the TextTransformation generated class.
This code will be added before the call to the base class.
protected GeneratePreInitializationCode ( string directiveName, global codeBuffer, global languageProvider, string>.global requiresArguments, string>.global providesArguments ) : void
directiveName string
codeBuffer global
languageProvider global
requiresArguments string>.global
providesArguments string>.global
Résultat void

GetImportsForProcessingRun() public méthode

Return namespace imports necessary for running template
public GetImportsForProcessingRun ( ) : string[]
Résultat string[]

GetReferencesForProcessingRun() public méthode

Get assembly references needed for running template
public GetReferencesForProcessingRun ( ) : string[]
Résultat string[]

InitializeProvidesDictionary() protected méthode

Override to initialize provides dictinoary
protected InitializeProvidesDictionary ( string directiveName, string>.global providesDictionary ) : void
directiveName string
providesDictionary string>.global
Résultat void

InitializeRequiresDictionary() protected méthode

Override to initialize requires dictionary
protected InitializeRequiresDictionary ( string directiveName, string>.global requiresDictionary ) : void
directiveName string
requiresDictionary string>.global
Résultat void

IsDirectiveSupported() public méthode

Check if the directive name is supported by this directive processor
public IsDirectiveSupported ( string directiveName ) : bool
directiveName string
Résultat bool

PostProcessArguments() protected méthode

Process arguments
protected PostProcessArguments ( string directiveName, string>.global requiresArguments, string>.global providesArguments ) : void
directiveName string
requiresArguments string>.global
providesArguments string>.global
Résultat void

StartProcessingRun() public méthode

Override StartProcessingRun to reset the helpers flag.
public StartProcessingRun ( global languageProvider, string templateContents, global errors ) : void
languageProvider global
templateContents string
errors global
Résultat void

nHydrateDirectiveProcessorBase() public méthode

Constructor