AddMacroSyntaxTrees
func AddMacroSyntaxTrees(params syntaxTrees: SyntaxTree[]) -> Compilation
Declaring type: Compilation
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: Compilation.Conversions.cs, Compilation.DeclarationAccess.cs, Compilation.DeclaredSymbolState.cs, Compilation.Diagnostics.cs, Compilation.Emit.cs, Compilation.EntryPoint.cs, Compilation.IncrementalState.cs, Compilation.IncrementalStateTransfer.cs, Compilation.LocalMacros.cs, Compilation.NativeSelf.cs, Compilation.RuntimeTypeOf.cs, Compilation.SemanticModel.cs, Compilation.SynthesizedMethodBodies.cs, Compilation.SynthesizedTypes.cs, Compilation.TargetCore.cs, Compilation.TargetInitialization.cs, Compilation.cs
Adds source trees to the compile-time-only local macro partition.
Parameters
| Name | Type | Description |
|---|---|---|
syntaxTrees |
SyntaxTree[] |
Return value
Remarks
The partition is compiled and activated in memory before consumer macro invocations are bound. Its declarations are not emitted into the consumer assembly.