Member group
CreateFragmentLocal
Declaring type: TokenTreeMacroContext
Namespace: Raven.CodeAnalysis.Macros
Assembly: Raven.CodeAnalysis.dll
Source file: TokenTreeMacroContext.cs
Overloads / Variants
CreateFragmentLocal
func CreateFragmentLocal(name: string, type: ITypeSymbol, declarationSpan: TextSpan) -> MacroFragmentLocal
Source file: TokenTreeMacroContext.cs
Creates an explicitly typed local declared at a body-relative span in the macro DSL.
Parameters
| Name | Type | Description |
|---|---|---|
name |
String | |
type |
ITypeSymbol | |
declarationSpan |
TextSpan |
Return value
CreateFragmentLocal
func CreateFragmentLocal(name: string, type: ITypeSymbol) -> MacroFragmentLocal
Source file: TokenTreeMacroContext.cs
Creates an explicitly typed local that a macro can attach to selected fragments.
Parameters
| Name | Type | Description |
|---|---|---|
name |
String | |
type |
ITypeSymbol |