public override BoundNode VisitBaseReference(BoundBaseReference node) { if (_inExpressionLambda) { Error(ErrorCode.ERR_ExpressionTreeContainsBaseAccess, node); } CheckReferenceToThisOrBase(node); return(base.VisitBaseReference(node)); }
public override BoundNode VisitBaseReference(BoundBaseReference node) { // TODO: fix up the type of the resulting node to be the base type // if "this" is cached, return it. if ((object)this.cachedThis != null) { return(F.Local(this.cachedThis)); } CapturedSymbolReplacement proxy = proxies[this.OriginalMethod.ThisParameter]; Debug.Assert(proxy != null); return(proxy.Replacement(F.Syntax, frameType => F.This())); }
private BoundExpression VisitBaseReference(BoundBaseReference node) { // should have been reported earlier. // Diagnostics.Add(ErrorCode.ERR_ExpressionTreeContainsBaseAccess, node.Syntax.Location); return(new BoundBadExpression(node.Syntax, 0, ImmutableArray <Symbol> .Empty, ImmutableArray.Create <BoundExpression>(node), ExpressionType)); }
public override BoundNode VisitBaseReference(BoundBaseReference node) { CheckReferenceToThisOrBase(node); return(base.VisitBaseReference(node)); }