Exemple #1
0
 public override Expression BindPseudoMember(TypeNode type, Identifier identifier)
 {
     if (this.insideAssertion && !this.currentMethod.IsStatic && !(this.currentType is Struct))
     {
         return(Looker.BindPseudoMember(this.currentMethod.ThisParameter, identifier));
     }
     return(null);
 }
Exemple #2
0
        public override Expression VisitQualifiedIdentifierCore(QualifiedIdentifier qualId)
        {
            Identifier id     = qualId.Identifier;
            Expression target = base.VisitQualifiedIdentifierCore(qualId);

            if (target == null && !this.inCompatibilityMode && this.insideAssertion)
            {
                target = Looker.BindPseudoMember(qualId.Qualifier, qualId.Identifier);
            }
            return(target);
        }