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); }
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); }
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; }