C# Class NetIde.VisualStudio.FileGenerators.BaseCodeGenerator

Inheritance: IVsSingleFileGenerator
显示文件 Open project: netide/netide

Private Properties

Property Type Description
IVsSingleFileGenerator int
IVsSingleFileGenerator int

Protected Methods

Method Description
GenerateCode ( string inputFileContent ) : byte[]
GeneratorError ( uint level, string message, uint line, uint column ) : void
GeneratorWarning ( uint level, string message, uint line, uint column ) : void
GetDefaultExtension ( ) : string

Private Methods

Method Description
IVsSingleFileGenerator ( string &pbstrDefaultExtension ) : int
IVsSingleFileGenerator ( string wszInputFilePath, string bstrInputFileContents, string wszDefaultNamespace, IntPtr rgbOutputFileContents, uint &pcbOutput, IVsGeneratorProgress pGenerateProgress ) : int

Method Details

GenerateCode() protected abstract method

protected abstract GenerateCode ( string inputFileContent ) : byte[]
inputFileContent string
return byte[]

GeneratorError() protected method

protected GeneratorError ( uint level, string message, uint line, uint column ) : void
level uint
message string
line uint
column uint
return void

GeneratorWarning() protected method

protected GeneratorWarning ( uint level, string message, uint line, uint column ) : void
level uint
message string
line uint
column uint
return void

GetDefaultExtension() protected abstract method

protected abstract GetDefaultExtension ( ) : string
return string