ParsingUtil

Description

static class Tinman.Core.Parsing.ParsingUtil

Helper class for this namespace.

Public / Constants

Precedence​Max


public constant PrecedenceMax → (RulePrecedence.Terminal:RulePrecedence)

The highest RulePrecedence value.

Precedence​Min


public constant PrecedenceMin → (RulePrecedence.List:RulePrecedence)

The lowest RulePrecedence value.

Public / Methods

Error​No​Such​Rule


public static method ErrorNoSuchRule → (2)

source in : string

The error source tag.

ruleName in : string

The rule name.

returns → ValidatingException

The ready-to-throw exception.

Creates a ValidatingException for a missing grammar rule.

Error​Rule​Already​Exists


public static method ErrorRuleAlreadyExists → (2)

source in : string

The error source tag.

ruleName in : string

The rule name.

returns → ValidatingException

The ready-to-throw exception.

Creates a ValidatingException for a duplicate grammar rule.

Resolve

5 overloads


public static method Resolve1 → (1)

node in : IPsiNode

The PSI node or null.

returns → bool

The result.

Calls IPsiNode.Resolve on the given node, if it is not null.


public static method Resolve2 → (3)

nodeA in : IPsiNode

The PSI node or null.

nodeB in : IPsiNode

The PSI node or null.

nodeC opt : IPsiNode = null

The PSI node or null.

returns → bool

The aggregated result.

Calls IPsiNode.Resolve on the given nodes.


public static method Resolve3 → (1)
<T ref : IPsiNode>

nodes in : IVectorConst<T>

The PSI nodes.

returns → bool

The aggregated result.

Calls IPsiNode.Resolve on the given nodes.


public static method Resolve4 → (1)
<T ref : IPsiNode>

nodes in : T [ ]

The PSI nodes.

returns → bool

The aggregated result.

Calls IPsiNode.Resolve on the given nodes.


public static method Resolve5 → (1)
<T ref : IPsiNode>

nodes in : IEnumerable<T>

The PSI nodes.

returns → bool

The aggregated result.

Calls IPsiNode.Resolve on the given nodes.