MrKWatkins.Ast Help

MessageFormatter.FormatErrors Method

Definition

Lazily enumerates over all Errors in the specified node.

public static IEnumerable<string> FormatErrors<TNode>(Node<TNode> node, bool includeSource = true) where TNode : Node<TNode>;

Type Parameters

Name

Description

TNode

The type of the node.

Parameters

Name

Type

Description

node

Node<TNode>

The node.

includeSource

Boolean

Whether to include the source code in the output or not. Defaults to true.

Returns

IEnumerable<String>

A lazy enumeration of formatted errors.

Last modified: 09 September 2024