Member group
CreateFragmentRegion
Declaring type: TokenTreeMacroContext
Namespace: Raven.CodeAnalysis.Macros
Assembly: Raven.CodeAnalysis.dll
Source file: TokenTreeMacroContext.cs
Overloads / Variants
CreateFragmentRegion
func CreateFragmentRegion(kind: MacroFragmentKind, bodyRelativeSpan: TextSpan, locals: ImmutableArray<MacroFragmentLocal>, targetType: ITypeSymbol?) -> MacroFragmentRegion
Source file: TokenTreeMacroContext.cs
Creates an ordinary Raven fragment with macro-introduced locals and an optional expression target type.
Parameters
| Name | Type | Description |
|---|---|---|
kind |
MacroFragmentKind | |
bodyRelativeSpan |
TextSpan | |
locals |
ImmutableArray<MacroFragmentLocal> | |
targetType |
ITypeSymbol? |
Return value
CreateFragmentRegion
func CreateFragmentRegion(kind: MacroFragmentKind, bodyRelativeSpan: TextSpan, locals: ImmutableArray<MacroFragmentLocal>) -> MacroFragmentRegion
Source file: TokenTreeMacroContext.cs
Creates an ordinary Raven fragment and the macro-introduced locals visible inside it.
Parameters
| Name | Type | Description |
|---|---|---|
kind |
MacroFragmentKind | |
bodyRelativeSpan |
TextSpan | |
locals |
ImmutableArray<MacroFragmentLocal> |
Return value
CreateFragmentRegion
func CreateFragmentRegion(kind: MacroFragmentKind, bodyRelativeSpan: TextSpan) -> MacroFragmentRegion
Source file: TokenTreeMacroContext.cs
Creates an ordinary Raven fragment with no macro-introduced locals.
Parameters
| Name | Type | Description |
|---|---|---|
kind |
MacroFragmentKind | |
bodyRelativeSpan |
TextSpan |