Beispiel #1
0
        private BoundExpression VisitWindowsRuntimeEventFieldAssignmentOperator(SyntaxNode syntax, BoundEventAccess left, BoundExpression rewrittenRight)
        {
            Debug.Assert(left.IsUsableAsField);

            EventSymbol eventSymbol = left.EventSymbol;

            Debug.Assert(eventSymbol.HasAssociatedField);
            Debug.Assert(eventSymbol.IsWindowsRuntimeEvent);

            BoundExpression rewrittenReceiverOpt = left.ReceiverOpt == null ? null : VisitExpression(left.ReceiverOpt);

            const bool isDynamic = false;

            return(RewriteWindowsRuntimeEventAssignmentOperator(
                       syntax,
                       eventSymbol,
                       EventAssignmentKind.Assignment,
                       isDynamic,
                       rewrittenReceiverOpt,
                       rewrittenRight));
        }