C# Class Company.OrmLanguage.OrmLanguageDirectiveProcessorBase

Base implementation for template directive processor that provides OrmLanguage files
Inheritance: VSTextTemplating::RequiresProvidesDirectiveProcessor
Show file Open project: thabart/SimpleOrm

Public Methods

Method 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

OrmLanguageDirectiveProcessorBase ( )

Constructor

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

Override StartProcessingRun to reset the helpers flag.

Protected Methods

Method 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

Method 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 method

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
return void

GetImportsForProcessingRun() public method

Return namespace imports necessary for running template
public GetImportsForProcessingRun ( ) : string[]
return string[]

GetReferencesForProcessingRun() public method

Get assembly references needed for running template
public GetReferencesForProcessingRun ( ) : string[]
return string[]

InitializeProvidesDictionary() protected method

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

InitializeRequiresDictionary() protected method

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

IsDirectiveSupported() public method

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

OrmLanguageDirectiveProcessorBase() public method

Constructor

PostProcessArguments() protected method

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

StartProcessingRun() public method

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