Example #1
0
        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));
        }
Example #2
0
 public Either<FieldReference, PropertyReferenceContainer> ConvertReference(IAstPropertyReference property, bool returnNullIfFailed = false)
 {
     return this.referenceContext.ConvertReference(property, returnNullIfFailed);
 }
Example #3
0
 public virtual Either<FieldReference, PropertyReferenceContainer> ConvertReference(IAstPropertyReference property, bool returnNullIfFailed = false)
 {
     Argument.RequireNotNull("property", property);
     return ConvertReference((IAstReference)property, returnNullIfFailed).Cast<FieldReference, PropertyReferenceContainer>();
 }
Example #4
0
 public Either <FieldReference, PropertyReferenceContainer> ConvertReference(IAstPropertyReference property, bool returnNullIfFailed = false)
 {
     return(this.referenceContext.ConvertReference(property, returnNullIfFailed));
 }
Example #5
0
 public virtual Either <FieldReference, PropertyReferenceContainer> ConvertReference(IAstPropertyReference property, bool returnNullIfFailed = false)
 {
     Argument.RequireNotNull("property", property);
     return(ConvertReference((IAstReference)property, returnNullIfFailed).Cast <FieldReference, PropertyReferenceContainer>());
 }
Example #6
0
 public AstPropertyExpression(IAstElement target, IAstPropertyReference reference)
 {
     this.Target = target;
     this.Reference = reference;
 }
Example #7
0
 public AstPropertyExpression(IAstElement target, IAstPropertyReference reference)
 {
     this.Target    = target;
     this.Reference = reference;
 }