API Browser

Method

CreateBodyDiagnostic

func CreateBodyDiagnostic(bodyRelativeSpan: TextSpan, message: string, severity: DiagnosticSeverity = DiagnosticSeverity.Error, code: string? = null) -> MacroExpansionDiagnostic

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

Parameters

Name Type Description
bodyRelativeSpan TextSpan
message String
severity DiagnosticSeverity
code String?

Return value

MacroExpansionDiagnostic