Class ResolveRuleApplication<TSemanticElement, TReference>
Represents a rule application that resolves elements of type TReference
public class ResolveRuleApplication<TSemanticElement, TReference> : SingleRuleApplication
Type Parameters
TSemanticElementthe type of the semantic element
TReferencethe 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
ruleRulethe rule referenced by this rule application
innerRuleApplicationthe inner rule application
lengthParsePositionDeltathe length of the rule application
examinedToParsePositionDeltathe 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
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
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
resolvedTReferencethe resolved element
contextParseContextthe context in which the element is resolved