Ejemplo n.º 1
0
        internal CodeBlockExpression(CodeBlock /*!*/ block, bool forceWrapperMethod, bool stronglyTyped, bool isDeclarative, Type delegateType)
            : base(AstNodeType.CodeBlockExpression)
        {
            Assert.NotNull(block);

            if (isDeclarative)
            {
                block.DeclarativeReferenceAdded();
            }

            _block = block;
            _forceWrapperMethod = forceWrapperMethod;
            _stronglyTyped      = stronglyTyped;
            _isDeclarative      = isDeclarative;
            _delegateType       = delegateType;
        }
Ejemplo n.º 2
0
        internal CodeBlockExpression(CodeBlock /*!*/ block, bool forceWrapperMethod, bool stronglyTyped, bool isDeclarative, Type delegateType)
            : base(AstNodeType.CodeBlockExpression)
        {
            Assert.NotNull(block);

            if (isDeclarative) {
                block.DeclarativeReferenceAdded();
            }

            _block = block;
            _forceWrapperMethod = forceWrapperMethod;
            _stronglyTyped = stronglyTyped;
            _isDeclarative = isDeclarative;
            _delegateType = delegateType;
        }