Example #1
0
        public ConstructorArgumentFromSyntaxExtractor(
            SemanticModelDecorator semanticModel
            )
        {
            if (semanticModel is null)
            {
                throw new ArgumentNullException(nameof(semanticModel));
            }

            _semanticModel = semanticModel;

            _constructorArguments = new List <DetectedMethodArgument>();
        }
Example #2
0
        public BindClauseExtractor(
            SemanticModelDecorator semanticModel,
            BindExpressionFactory beFactory
            )
        {
            if (semanticModel is null)
            {
                throw new ArgumentNullException(nameof(semanticModel));
            }

            if (beFactory is null)
            {
                throw new ArgumentNullException(nameof(beFactory));
            }

            _semanticModel = semanticModel;
            _beFactory     = beFactory;

            _bindingContainers = new List <IBindingContainer>();
        }