API Browser

Member group

ParseBlock

Declaring type: TokenTreeMacroContext
Namespace: Raven.CodeAnalysis.Macros
Assembly: Raven.CodeAnalysis.dll
Source file: TokenTreeMacroContext.cs

Overloads / Variants

ParseBlock

func ParseBlock() -> BlockStatementSyntax

Source file: TokenTreeMacroContext.cs

Parses the complete token-tree body as one Raven lexical block while retaining the authored positions of its statements and expressions.

Return value

BlockStatementSyntax

ParseBlock

func ParseBlock(bodyRelativeSpan: TextSpan) -> BlockStatementSyntax

Source file: TokenTreeMacroContext.cs

Parses a region of the token-tree body as one Raven lexical block while retaining the authored positions of its statements and expressions.

Parameters

Name Type Description
bodyRelativeSpan TextSpan

Return value

BlockStatementSyntax