Property | Type | Description | |
---|---|---|---|
IVsSingleFileGenerator | int | ||
IVsSingleFileGenerator | int |
Method | Description | |
---|---|---|
GenerateCode ( string inputFileContent ) : byte[] |
The method that does the actual work of generating code given the input file
|
|
GeneratorError ( uint level, string message, uint line, uint column ) : void |
Method that will communicate an error via the shell callback mechanism
|
|
GeneratorWarning ( uint level, string message, uint line, uint column ) : void |
Method that will communicate a warning via the shell callback mechanism
|
|
GetDefaultExtension ( ) : string |
Gets the default extension for this generator
|
Method | Description | |
---|---|---|
IVsSingleFileGenerator ( string &pbstrDefaultExtension ) : int |
Implements the IVsSingleFileGenerator.DefaultExtension method. Returns the extension of the generated file
|
|
IVsSingleFileGenerator ( string wszInputFilePath, string bstrInputFileContents, string wszDefaultNamespace, |
Implements the IVsSingleFileGenerator.Generate method. Executes the transformation and returns the newly generated output file, whenever a custom tool is loaded, or the input file is saved
|
protected abstract GenerateCode ( string inputFileContent ) : byte[] | ||
inputFileContent | string | File contents as a string |
return | byte[] |
protected GeneratorError ( uint level, string message, uint line, uint column ) : void | ||
level | uint | Level or severity |
message | string | Text displayed to the user |
line | uint | Line number of error |
column | uint | Column number of error |
return | void |
protected GeneratorWarning ( uint level, string message, uint line, uint column ) : void | ||
level | uint | Level or severity |
message | string | Text displayed to the user |
line | uint | Line number of warning |
column | uint | Column number of warning |
return | void |
protected abstract GetDefaultExtension ( ) : string | ||
return | string |