public TItem GetValue(IResolutionContext context) { var definedcontext = context.ResolveSingle(Token) as IResolutionContext <TItem>; return(definedcontext.Value); }
private IEnumerable <IResolutionContext> ResolveSingleParent(IToken token, IResolutionContext context) { return(new[] { context.ResolveSingle(token) }); }
public IResolutionContext ResolveSingle(IToken token) => token == Node.Token ? this : parent.ResolveSingle(token);