Ejemplo n.º 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);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public override void TransferStateTo(Visitor targetVisitor)
        {
            base.TransferStateTo(targetVisitor);
            Looker target = targetVisitor as Looker;

            if (target == null)
            {
                return;
            }
            target.currentNamespaceURI           = this.currentNamespaceURI;
            target.defaultNamespaceURI           = this.defaultNamespaceURI;
            target.currentBlock                  = this.currentBlock;
            target.typeParamToClassParamMap      = this.typeParamToClassParamMap;
            target.DontInjectDefaultConstructors = this.DontInjectDefaultConstructors;
        }