public override BoundNode VisitHostObjectMemberReference(BoundHostObjectMemberReference node)
        {
            Debug.Assert(previousSubmissionFields != null);
            Debug.Assert(!containingSymbol.IsStatic);

            var hostObjectReference = previousSubmissionFields.GetHostObjectField();
            var thisReference = new BoundThisReference(null, null, containingSymbol.ThisParameter, containingType);
            return new BoundFieldAccess(null, null, thisReference, hostObjectReference, constantValueOpt: null);
        }
        public override BoundNode VisitHostObjectMemberReference(BoundHostObjectMemberReference node)
        {
            Debug.Assert(_previousSubmissionFields != null);
            Debug.Assert(!_factory.CurrentMethod.IsStatic);

            var syntax = node.Syntax;
            var hostObjectReference = _previousSubmissionFields.GetHostObjectField();
            var thisReference = new BoundThisReference(syntax, _factory.CurrentType);
            return new BoundFieldAccess(syntax, thisReference, hostObjectReference, constantValueOpt: null);
        }
예제 #3
0
        public override BoundNode VisitHostObjectMemberReference(BoundHostObjectMemberReference node)
        {
            Debug.Assert(previousSubmissionFields != null);
            Debug.Assert(!containingSymbol.IsStatic);

            var hostObjectReference = previousSubmissionFields.GetHostObjectField();
            var thisReference       = new BoundThisReference(null, null, containingSymbol.ThisParameter, containingType);

            return(new BoundFieldAccess(null, null, thisReference, hostObjectReference, constantValueOpt: null));
        }
예제 #4
0
        public override BoundNode VisitHostObjectMemberReference(BoundHostObjectMemberReference node)
        {
            Debug.Assert(_previousSubmissionFields != null);
            Debug.Assert(!_factory.TopLevelMethod.IsStatic);

            var syntax = node.Syntax;
            var hostObjectReference = _previousSubmissionFields.GetHostObjectField();
            var thisReference       = new BoundThisReference(syntax, _factory.CurrentType);

            return(new BoundFieldAccess(syntax, thisReference, hostObjectReference, constantValueOpt: null));
        }
 public override BoundNode VisitHostObjectMemberReference(BoundHostObjectMemberReference node)
 {
     Debug.Assert(_previousSubmissionFields != null);
     Debug.Assert(_factory.TopLevelMethod is { IsStatic: false });