C# Класс Microsoft.Zing.Compiler

Наследование: System.Compiler.Compiler, ICodeGenerator
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Compiler ( ) : System
ConstructSymbolTable ( System.Compiler.Compilation compilation, ErrorNodeList errors ) : void

Parses all of the CompilationUnitSnippets in the given compilation, ignoring method bodies. Then resolves all type expressions. The resulting types can be retrieved from the module in compilation.TargetModule. The base types, interfaces and member signatures will all be resolved and on an equal footing with imported, already compiled modules and assemblies.

CreateCompilerOptions ( ) : CompilerOptions
CreateDocument ( string fileName, int lineNumber, System.Compiler.DocumentText text ) : System.Compiler.Document
CreateDocument ( string fileName, int lineNumber, string text ) : System.Compiler.Document
CreateParser ( string fileName, int lineNumber, System.Compiler.DocumentText text, Module symbolTable, ErrorNodeList errorNodes, CompilerParameters options ) : IParser
CreateZingDocument ( string fileName, int lineNumber, System.Compiler.DocumentText text ) : System.Compiler.Document
GenerateCodeFromIR ( System.Compiler.Node node, TextWriter w, CodeGeneratorOptions o ) : void
ParseCompilerOption ( CompilerParameters options, string arg, ErrorNodeList errors ) : bool
ParseCompilerParameters ( CompilerParameters options, string arguments, ErrorNodeList errors ) : string[]

Приватные методы

Метод Описание
CompileAssemblyFromDomBatch ( CompilerParameters options, CodeCompileUnit compilationUnits, ErrorNodeList errorNodes ) : CompilerResults
CompileAssemblyFromFileBatch ( CompilerParameters options, string fileNames, ErrorNodeList errorNodes, bool canUseMemoryMap ) : CompilerResults
CompileParseTree ( System.Compiler.Compilation compilation, ErrorNodeList errorNodes ) : void
GenerateCodeFileFromIR ( System.Compiler.Node node, string path, string indent, bool blankLines, string bracingStyle ) : void
ICodeGenerator ( GeneratorSupport supports ) : bool
ICodeGenerator ( string value ) : bool
ICodeGenerator ( CodeTypeReference type ) : string
ICodeGenerator ( string value ) : string
ICodeGenerator ( CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( System.CodeDom.CodeExpression e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( CodeNamespace e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( CodeStatement e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( string value ) : void
ResolveIR ( System.Compiler.Compilation compilation, ErrorNodeList errorNodes ) : void
SetOutputFileName ( CompilerParameters options, string fileName ) : void

Описание методов

Compiler() публичный Метод

public Compiler ( ) : System
Результат System

ConstructSymbolTable() публичный Метод

Parses all of the CompilationUnitSnippets in the given compilation, ignoring method bodies. Then resolves all type expressions. The resulting types can be retrieved from the module in compilation.TargetModule. The base types, interfaces and member signatures will all be resolved and on an equal footing with imported, already compiled modules and assemblies.
public ConstructSymbolTable ( System.Compiler.Compilation compilation, ErrorNodeList errors ) : void
compilation System.Compiler.Compilation
errors ErrorNodeList
Результат void

CreateCompilerOptions() публичный Метод

public CreateCompilerOptions ( ) : CompilerOptions
Результат CompilerOptions

CreateDocument() публичный Метод

public CreateDocument ( string fileName, int lineNumber, System.Compiler.DocumentText text ) : System.Compiler.Document
fileName string
lineNumber int
text System.Compiler.DocumentText
Результат System.Compiler.Document

CreateDocument() публичный Метод

public CreateDocument ( string fileName, int lineNumber, string text ) : System.Compiler.Document
fileName string
lineNumber int
text string
Результат System.Compiler.Document

CreateParser() публичный Метод

public CreateParser ( string fileName, int lineNumber, System.Compiler.DocumentText text, Module symbolTable, ErrorNodeList errorNodes, CompilerParameters options ) : IParser
fileName string
lineNumber int
text System.Compiler.DocumentText
symbolTable Module
errorNodes ErrorNodeList
options System.CodeDom.Compiler.CompilerParameters
Результат IParser

CreateZingDocument() публичный статический Метод

public static CreateZingDocument ( string fileName, int lineNumber, System.Compiler.DocumentText text ) : System.Compiler.Document
fileName string
lineNumber int
text System.Compiler.DocumentText
Результат System.Compiler.Document

GenerateCodeFromIR() публичный статический Метод

public static GenerateCodeFromIR ( System.Compiler.Node node, TextWriter w, CodeGeneratorOptions o ) : void
node System.Compiler.Node
w System.IO.TextWriter
o System.CodeDom.Compiler.CodeGeneratorOptions
Результат void

ParseCompilerOption() публичный Метод

public ParseCompilerOption ( CompilerParameters options, string arg, ErrorNodeList errors ) : bool
options System.CodeDom.Compiler.CompilerParameters
arg string
errors ErrorNodeList
Результат bool

ParseCompilerParameters() публичный Метод

public ParseCompilerParameters ( CompilerParameters options, string arguments, ErrorNodeList errors ) : string[]
options System.CodeDom.Compiler.CompilerParameters
arguments string
errors ErrorNodeList
Результат string[]