C# Class Pchp.CodeAnalysis.PhpCompilation

Inheritance: Compilation
Mostrar archivo Open project: iolevel/peachpie Class Usage Examples

Private Properties

Property Type Description
AddedModulesResourceNames IEnumerable
AnalyzerForLanguage Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver
CommonGetBoundReferenceManager Microsoft.CodeAnalysis.CommonReferenceManager
CommonGetWellKnownTypeMember ISymbol
CompareSourceLocations int
CompileImpl bool
Create PhpCompilation
CreateModuleBuilder CommonPEModuleBuilder
EmitDifference Microsoft.CodeAnalysis.Emit.EmitDifferenceResult
FilterAndAppendAndFreeDiagnostics bool
FilterAndAppendDiagnostics bool
FindEntryPoint Pchp.CodeAnalysis.Symbols.MethodSymbol
GetBoundReferenceManager ReferenceManager
GetRuntimeMetadataVersion string
GetRuntimeMetadataVersion string
GetSyntaxTreeOrdinal int
GetUnaliasedReferencedAssemblies void
HasCodeToEmit bool
HasSubmissionResult bool
IsAttributeType bool
IsSystemTypeReference bool
PhpCompilation Microsoft.CodeAnalysis
SetupWin32Resources void
ValidateDebugEntryPoint void
WithEventQueue Compilation

Public Methods

Method Description
ContainsSymbolsWithName ( bool>.Func predicate, SymbolFilter filter = SymbolFilter.TypeAndMember, CancellationToken cancellationToken = default(CancellationToken) ) : bool
CreateErrorTypeSymbol ( INamespaceOrTypeSymbol container, string name, int arity ) : INamedTypeSymbol
GetDeclarationDiagnostics ( CancellationToken cancellationToken = default(CancellationToken) ) : ImmutableArray
GetDiagnostics ( CancellationToken cancellationToken = default(CancellationToken) ) : ImmutableArray
GetMethodBodyDiagnostics ( CancellationToken cancellationToken = default(CancellationToken) ) : ImmutableArray
GetParseDiagnostics ( CancellationToken cancellationToken = default(CancellationToken) ) : ImmutableArray
GetSymbolsWithName ( bool>.Func predicate, SymbolFilter filter = SymbolFilter.TypeAndMember, CancellationToken cancellationToken = default(CancellationToken) ) : IEnumerable
ToMetadataReference ( ImmutableArray aliases = default(ImmutableArray<string>), bool embedInteropTypes = false ) : Microsoft.CodeAnalysis.CompilationReference

Protected Methods

Method Description
AppendDefaultVersionResource ( Stream resourceStream ) : void
CommonAddSyntaxTrees ( IEnumerable trees ) : Compilation
CommonClone ( ) : Compilation
CommonContainsSyntaxTree ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree ) : bool
CommonCreateArrayTypeSymbol ( ITypeSymbol elementType, int rank ) : IArrayTypeSymbol
CommonCreatePointerTypeSymbol ( ITypeSymbol elementType ) : IPointerTypeSymbol
CommonGetAssemblyOrModuleSymbol ( Microsoft.CodeAnalysis.MetadataReference reference ) : ISymbol
CommonGetCompilationNamespace ( INamespaceSymbol namespaceSymbol ) : INamespaceSymbol
CommonGetEntryPoint ( CancellationToken cancellationToken ) : IMethodSymbol
CommonGetSemanticModel ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree, bool ignoreAccessibility ) : Microsoft.CodeAnalysis.SemanticModel
CommonRemoveAllSyntaxTrees ( ) : Compilation
CommonRemoveSyntaxTrees ( IEnumerable trees ) : Compilation
CommonReplaceSyntaxTree ( Microsoft.CodeAnalysis.SyntaxTree oldTree, Microsoft.CodeAnalysis.SyntaxTree newTree ) : Compilation
CommonWithAssemblyName ( string outputName ) : Compilation
CommonWithOptions ( Microsoft.CodeAnalysis.CompilationOptions options ) : Compilation
CommonWithReferences ( IEnumerable newReferences ) : Compilation
CommonWithScriptCompilationInfo ( Microsoft.CodeAnalysis.ScriptCompilationInfo info ) : Compilation

Private Methods

Method Description
AddedModulesResourceNames ( DiagnosticBag diagnostics ) : IEnumerable
AnalyzerForLanguage ( ImmutableArray analyzers, Microsoft.CodeAnalysis.Diagnostics.AnalyzerManager analyzerManager ) : Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver
CommonGetBoundReferenceManager ( ) : Microsoft.CodeAnalysis.CommonReferenceManager
CommonGetWellKnownTypeMember ( WellKnownMember member ) : ISymbol
CompareSourceLocations ( Microsoft.CodeAnalysis.Location loc1, Microsoft.CodeAnalysis.Location loc2 ) : int
CompileImpl ( CommonPEModuleBuilder moduleBuilder, Stream win32Resources, Stream xmlDocStream, bool emittingPdb, DiagnosticBag diagnostics, Predicate filterOpt, CancellationToken cancellationToken ) : bool
Create ( string assemblyName, IEnumerable syntaxTrees = null, IEnumerable references = null, PhpCompilationOptions options = null ) : PhpCompilation
CreateModuleBuilder ( EmitOptions emitOptions, IMethodSymbol debugEntryPoint, IEnumerable manifestResources, Microsoft.CodeAnalysis.CodeGen.CompilationTestData testData, DiagnosticBag diagnostics, CancellationToken cancellationToken ) : CommonPEModuleBuilder
EmitDifference ( Microsoft.CodeAnalysis.Emit.EmitBaseline baseline, IEnumerable edits, bool>.Func isAddedSymbol, Stream metadataStream, Stream ilStream, Stream pdbStream, ICollection updatedMethodHandles, Microsoft.CodeAnalysis.CodeGen.CompilationTestData testData, CancellationToken cancellationToken ) : Microsoft.CodeAnalysis.Emit.EmitDifferenceResult
FilterAndAppendAndFreeDiagnostics ( DiagnosticBag accumulator, DiagnosticBag &incoming ) : bool

Filter out warnings based on the compiler options (/nowarn, /warn and /warnaserror) and the pragma warning directives. 'incoming' is freed.

FilterAndAppendDiagnostics ( DiagnosticBag accumulator, IEnumerable incoming ) : bool

Filter out warnings based on the compiler options (/nowarn, /warn and /warnaserror) and the pragma warning directives.

FindEntryPoint ( CancellationToken cancellationToken ) : MethodSymbol
GetBoundReferenceManager ( ) : ReferenceManager
GetRuntimeMetadataVersion ( EmitOptions emitOptions ) : string
GetRuntimeMetadataVersion ( EmitOptions emitOptions, DiagnosticBag diagnostics ) : string
GetSyntaxTreeOrdinal ( Microsoft.CodeAnalysis.SyntaxTree tree ) : int
GetUnaliasedReferencedAssemblies ( ArrayBuilder assemblies ) : void

Return a list of assembly symbols than can be accessed without using an alias. For example: 1) /r:A.dll /r:B.dll -> A, B 2) /r:Foo=A.dll /r:B.dll -> B 3) /r:Foo=A.dll /r:A.dll -> A

HasCodeToEmit ( ) : bool
HasSubmissionResult ( ) : bool
IsAttributeType ( ITypeSymbol type ) : bool
IsSystemTypeReference ( ITypeSymbol type ) : bool
PhpCompilation ( string assemblyName, PhpCompilationOptions options, ImmutableArray references, AsyncQueue eventQueue = null ) : Microsoft.CodeAnalysis
SetupWin32Resources ( PEModuleBuilder moduleBeingBuilt, Stream win32Resources, DiagnosticBag diagnostics ) : void
ValidateDebugEntryPoint ( IMethodSymbol debugEntryPoint, DiagnosticBag diagnostics ) : void
WithEventQueue ( AsyncQueue eventQueue ) : Compilation

Method Details

AppendDefaultVersionResource() protected method

protected AppendDefaultVersionResource ( Stream resourceStream ) : void
resourceStream Stream
return void

CommonAddSyntaxTrees() protected method

protected CommonAddSyntaxTrees ( IEnumerable trees ) : Compilation
trees IEnumerable
return Compilation

CommonClone() protected method

protected CommonClone ( ) : Compilation
return Compilation

CommonContainsSyntaxTree() protected method

protected CommonContainsSyntaxTree ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree ) : bool
syntaxTree Microsoft.CodeAnalysis.SyntaxTree
return bool

CommonCreateArrayTypeSymbol() protected method

protected CommonCreateArrayTypeSymbol ( ITypeSymbol elementType, int rank ) : IArrayTypeSymbol
elementType ITypeSymbol
rank int
return IArrayTypeSymbol

CommonCreatePointerTypeSymbol() protected method

protected CommonCreatePointerTypeSymbol ( ITypeSymbol elementType ) : IPointerTypeSymbol
elementType ITypeSymbol
return IPointerTypeSymbol

CommonGetAssemblyOrModuleSymbol() protected method

protected CommonGetAssemblyOrModuleSymbol ( Microsoft.CodeAnalysis.MetadataReference reference ) : ISymbol
reference Microsoft.CodeAnalysis.MetadataReference
return ISymbol

CommonGetCompilationNamespace() protected method

protected CommonGetCompilationNamespace ( INamespaceSymbol namespaceSymbol ) : INamespaceSymbol
namespaceSymbol INamespaceSymbol
return INamespaceSymbol

CommonGetEntryPoint() protected method

protected CommonGetEntryPoint ( CancellationToken cancellationToken ) : IMethodSymbol
cancellationToken System.Threading.CancellationToken
return IMethodSymbol

CommonGetSemanticModel() protected method

protected CommonGetSemanticModel ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree, bool ignoreAccessibility ) : Microsoft.CodeAnalysis.SemanticModel
syntaxTree Microsoft.CodeAnalysis.SyntaxTree
ignoreAccessibility bool
return Microsoft.CodeAnalysis.SemanticModel

CommonRemoveAllSyntaxTrees() protected method

protected CommonRemoveAllSyntaxTrees ( ) : Compilation
return Compilation

CommonRemoveSyntaxTrees() protected method

protected CommonRemoveSyntaxTrees ( IEnumerable trees ) : Compilation
trees IEnumerable
return Compilation

CommonReplaceSyntaxTree() protected method

protected CommonReplaceSyntaxTree ( Microsoft.CodeAnalysis.SyntaxTree oldTree, Microsoft.CodeAnalysis.SyntaxTree newTree ) : Compilation
oldTree Microsoft.CodeAnalysis.SyntaxTree
newTree Microsoft.CodeAnalysis.SyntaxTree
return Compilation

CommonWithAssemblyName() protected method

protected CommonWithAssemblyName ( string outputName ) : Compilation
outputName string
return Compilation

CommonWithOptions() protected method

protected CommonWithOptions ( Microsoft.CodeAnalysis.CompilationOptions options ) : Compilation
options Microsoft.CodeAnalysis.CompilationOptions
return Compilation

CommonWithReferences() protected method

protected CommonWithReferences ( IEnumerable newReferences ) : Compilation
newReferences IEnumerable
return Compilation

CommonWithScriptCompilationInfo() protected method

protected CommonWithScriptCompilationInfo ( Microsoft.CodeAnalysis.ScriptCompilationInfo info ) : Compilation
info Microsoft.CodeAnalysis.ScriptCompilationInfo
return Compilation

ContainsSymbolsWithName() public method

public ContainsSymbolsWithName ( bool>.Func predicate, SymbolFilter filter = SymbolFilter.TypeAndMember, CancellationToken cancellationToken = default(CancellationToken) ) : bool
predicate bool>.Func
filter SymbolFilter
cancellationToken System.Threading.CancellationToken
return bool

CreateErrorTypeSymbol() public method

public CreateErrorTypeSymbol ( INamespaceOrTypeSymbol container, string name, int arity ) : INamedTypeSymbol
container INamespaceOrTypeSymbol
name string
arity int
return INamedTypeSymbol

GetDeclarationDiagnostics() public method

public GetDeclarationDiagnostics ( CancellationToken cancellationToken = default(CancellationToken) ) : ImmutableArray
cancellationToken System.Threading.CancellationToken
return ImmutableArray

GetDiagnostics() public method

public GetDiagnostics ( CancellationToken cancellationToken = default(CancellationToken) ) : ImmutableArray
cancellationToken System.Threading.CancellationToken
return ImmutableArray

GetMethodBodyDiagnostics() public method

public GetMethodBodyDiagnostics ( CancellationToken cancellationToken = default(CancellationToken) ) : ImmutableArray
cancellationToken System.Threading.CancellationToken
return ImmutableArray

GetParseDiagnostics() public method

public GetParseDiagnostics ( CancellationToken cancellationToken = default(CancellationToken) ) : ImmutableArray
cancellationToken System.Threading.CancellationToken
return ImmutableArray

GetSymbolsWithName() public method

public GetSymbolsWithName ( bool>.Func predicate, SymbolFilter filter = SymbolFilter.TypeAndMember, CancellationToken cancellationToken = default(CancellationToken) ) : IEnumerable
predicate bool>.Func
filter SymbolFilter
cancellationToken System.Threading.CancellationToken
return IEnumerable

ToMetadataReference() public method

public ToMetadataReference ( ImmutableArray aliases = default(ImmutableArray<string>), bool embedInteropTypes = false ) : Microsoft.CodeAnalysis.CompilationReference
aliases ImmutableArray
embedInteropTypes bool
return Microsoft.CodeAnalysis.CompilationReference