Beispiel #1
0
        public IEnumeratorStatement Enumerate(IMemberParentExpression enumeratorSource, ITypeReference itemType)
        {
            IEnumeratorStatement enumStatement = new EnumeratorStatement(this);

            enumStatement.EnumeratorSource = enumeratorSource;
            enumStatement.ItemType         = itemType;
            Add(enumStatement);
            return(enumStatement);
        }
Beispiel #2
0
 public IndexerReferenceExpression(IMemberParentExpression reference, IExpressionCollection indices)
     : base(Resources.IndexerName, reference)
 {
     if (indices != null)
     {
         foreach (IExpression exp in indices)
         {
             this.Indices.Add(exp);
         }
     }
 }
Beispiel #3
0
 protected override IMemberReferenceExpression OnGetReference(IMemberParentExpression owner)
 {
     throw new NotSupportedException("Coercion members cannot be referenced as they alter expression interpretation/execution.");
 }
Beispiel #4
0
 public IEnumeratorStatement Enumerate(IMemberParentExpression enumeratorSource, ITypeReference itemType)
 {
     return(this.Statements.Enumerate(enumeratorSource, itemType));
 }
Beispiel #5
0
 protected override IMemberReferenceExpression OnGetReference(IMemberParentExpression owner)
 {
     throw new NotSupportedException("Constructors cannot be referred to in this manner.");
 }
Beispiel #6
0
 protected override IMemberReferenceExpression OnGetReference(IMemberParentExpression owner)
 {
     return(new ReferenceExpression(owner, this));
 }
 public ReferenceExpression(FieldMember referencePoint, IMemberParentExpression owner)
     : base(referencePoint.Name, owner)
 {
     this.referencePoint = referencePoint;
 }
Beispiel #8
0
 public IPropertyReferenceExpression GetReference(IMemberParentExpression source)
 {
     return(new ReferenceExpression(source, this));
 }
Beispiel #9
0
 public IMemberReferenceExpression GetReference(IMemberParentExpression owner)
 {
     return(this.OnGetReference(owner));
 }
Beispiel #10
0
 protected override IMemberReferenceExpression OnGetReference(IMemberParentExpression owner)
 {
     throw new NotImplementedException();
 }
Beispiel #11
0
 public new IFieldReferenceExpression GetReference(IMemberParentExpression owner)
 {
     return(new ReferenceExpression(this, owner));
 }
Beispiel #12
0
 public ParentMemberReference(string name, IMemberParentExpression reference)
 {
     this.name      = name;
     this.reference = reference;
 }
Beispiel #13
0
 public ReferenceExpression(MethodSignatureMember <TParameter, TTypeParameter, TSignatureDom, TParent> referencePoint, IMemberParentExpression parentExpression)
     : base(referencePoint.Name, parentExpression)
 {
     this.referencePoint = referencePoint;
 }
 protected override IMemberReferenceExpression OnGetReference(IMemberParentExpression owner)
 {
     return(this.GetReference());
 }
Beispiel #15
0
 public IMethodReferenceExpression GetReference(IMemberParentExpression source)
 {
     return(new ReferenceExpression(this, source));
 }
Beispiel #16
0
 protected override IMemberReferenceExpression OnGetReference(IMemberParentExpression owner)
 {
     throw new NotSupportedException("Type-parameters are not instances.");
 }
Beispiel #17
0
 public VariableReferenceExpression(string name, IMemberParentExpression reference)
 {
     this.name      = name;
     this.reference = reference;
 }
Beispiel #18
0
 protected abstract IMemberReferenceExpression OnGetReference(IMemberParentExpression owner);
Beispiel #19
0
 public FieldReferenceExpression(string name, IMemberParentExpression reference)
     : base(name, reference)
 {
 }
Beispiel #20
0
 public ReferenceExpression(IMemberParentExpression owner, PropertyMember referencePoint)
     : base(referencePoint.Name, owner)
 {
     this.referencePoint = referencePoint;
 }
Beispiel #21
0
 public PropertyReferenceExpression(string name, IMemberParentExpression reference)
     : base(name, reference)
 {
 }