public Builder(PredicateSyntaxStrategy <T> owner, object key, StateTableStore table, bool trackIncrementalSteps, string?name, IEqualityComparer <T> comparer)
 {
     _owner          = owner;
     _name           = name;
     _comparer       = comparer;
     _key            = key;
     _filterTable    = table.GetStateTableOrEmpty <SyntaxNode>(_owner._filterKey).ToBuilder(stepName: null, trackIncrementalSteps);
     _transformTable = table.GetStateTableOrEmpty <T>(_key).ToBuilder(_name, trackIncrementalSteps);
 }
Exemplo n.º 2
0
            public Builder(SyntaxReceiverStrategy <T> owner, object key, StateTableStore driverStateTable, bool trackIncrementalSteps)
            {
                _owner          = owner;
                _key            = key;
                _nodeStateTable = driverStateTable.GetStateTableOrEmpty <ISyntaxContextReceiver?>(_key).ToBuilder(stepName: null, trackIncrementalSteps);
                try
                {
                    _receiver = owner._receiverCreator();
                }
                catch (Exception e)
                {
                    throw new UserFunctionException(e);
                }

                if (_receiver is object)
                {
                    _walker = new GeneratorSyntaxWalker(_receiver);
                }
            }