Exemplo n.º 1
0
 internal ScriptBlock(
     Token token,
     FunctionDeclarationNode functionDeclaration,
     ParameterDeclarationNode parameterDeclaration,
     ParseTreeNode begin,
     ParseTreeNode process,
     ParseTreeNode end,
     ParseTreeNode dynamicParams,
     bool isFilter,
     List <AttributeNode> attributeNodes,
     List <Token> helpComments,
     List <List <Token> > parameterComments,
     int pipelineSlots,
     int variableSlots)
 {
     this._token = token;
     this._functionDeclaration  = functionDeclaration;
     this._parameterDeclaration = parameterDeclaration;
     this._begin                 = begin;
     this._process               = process;
     this._end                   = end;
     this._dynamicParams         = dynamicParams;
     this._isFilter              = isFilter;
     this._attributeNodes        = attributeNodes;
     this._helpComments          = helpComments;
     this._parameterHelpComments = parameterComments;
     this._pipelineSlots         = pipelineSlots;
     this._variableSlots         = variableSlots;
 }
Exemplo n.º 2
0
        internal ScriptBlock BuildNewScriptBlock(FunctionDeclarationNode functionDeclaration)
        {
            Token token = (Token)null;

            if (this._begin != null)
            {
                token = this._begin.NodeToken;
            }
            else if (this._process != null)
            {
                token = this._process.NodeToken;
            }
            else if (this._end != null)
            {
                token = this._end.NodeToken;
            }
            return(new ScriptBlock(token, functionDeclaration, this._parameterDeclarationNode, this._begin, this._process, this._end, this._dynamicParams, this._isFilter, this._attributes, this._helpComments, this._parameterComments, this._pipelineSlots, this._variableSlots));
        }
Exemplo n.º 3
0
 internal override void Visit(FunctionDeclarationNode node) => this.preOrderNodes.Add((ParseTreeNode)node);
 internal override void Visit(FunctionDeclarationNode node) => this.ReportError((ParseTreeNode)node, "FunctionDeclarationNotSupportedInDataSection");