Table of Contents

Class ResolveRuleApplication<TSemanticElement, TReference>

Namespace
NMF.AnyText.Model
Assembly
NMF.AnyText.Core.dll

Represents a rule application that resolves elements of type TReference

public class ResolveRuleApplication<TSemanticElement, TReference> : SingleRuleApplication

Type Parameters

TSemanticElement

the type of the semantic element

TReference

the type referenced by this resolution

Inheritance
ResolveRuleApplication<TSemanticElement, TReference>
Inherited Members

Constructors

ResolveRuleApplication(Rule, RuleApplication, ParsePositionDelta, ParsePositionDelta)

Creates a new instance

public ResolveRuleApplication(Rule rule, RuleApplication inner, ParsePositionDelta length, ParsePositionDelta examinedTo)

Parameters

rule Rule

the rule referenced by this rule application

inner RuleApplication

the inner rule application

length ParsePositionDelta

the length of the rule application

examinedTo ParsePositionDelta

the amount of text that was used to conclude this rule application

Properties

LastError

Gets the resolve error associated with this rule application

public DiagnosticItem LastError { get; }

Property Value

DiagnosticItem

Resolved

Gets the resolved element

public TReference Resolved { get; }

Property Value

TReference

SemanticElement

Gets the semantic element of the rule application

public override object SemanticElement { get; }

Property Value

object

Methods

Resolve(TReference, ParseContext)

Resolves this rule application with the given item under the given context

public virtual void Resolve(TReference resolved, ParseContext context)

Parameters

resolved TReference

the resolved element

context ParseContext

the context in which the element is resolved