protected override IEnumerable <IAstElement> VisitOrTransformChildren(AstElementTransform transform) { if (this.Target != null) { yield return(this.Target = transform(this.Target)); } yield return(this.Reference = (IAstPropertyReference)transform(this.Reference)); }
public Either<FieldReference, PropertyReferenceContainer> ConvertReference(IAstPropertyReference property, bool returnNullIfFailed = false) { return this.referenceContext.ConvertReference(property, returnNullIfFailed); }
public virtual Either<FieldReference, PropertyReferenceContainer> ConvertReference(IAstPropertyReference property, bool returnNullIfFailed = false) { Argument.RequireNotNull("property", property); return ConvertReference((IAstReference)property, returnNullIfFailed).Cast<FieldReference, PropertyReferenceContainer>(); }
public Either <FieldReference, PropertyReferenceContainer> ConvertReference(IAstPropertyReference property, bool returnNullIfFailed = false) { return(this.referenceContext.ConvertReference(property, returnNullIfFailed)); }
public virtual Either <FieldReference, PropertyReferenceContainer> ConvertReference(IAstPropertyReference property, bool returnNullIfFailed = false) { Argument.RequireNotNull("property", property); return(ConvertReference((IAstReference)property, returnNullIfFailed).Cast <FieldReference, PropertyReferenceContainer>()); }
public AstPropertyExpression(IAstElement target, IAstPropertyReference reference) { this.Target = target; this.Reference = reference; }