Ejemplo 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;
 }
Ejemplo n.º 2
0
        internal ScriptBlockNode(
            ParameterDeclarationNode parameterDeclaration,
            ParseTreeNode body,
            bool isFilter,
            List <AttributeNode> attributes,
            List <Token> helpComments,
            List <List <Token> > parameterComments)
        {
            this._parameterDeclarationNode = parameterDeclaration;
            if (isFilter)
            {
                this._process = body;
            }
            else
            {
                this._end = body;
            }
            this._isFilter          = isFilter;
            this._attributes        = attributes;
            this._helpComments      = helpComments;
            this._parameterComments = parameterComments;
            ActivationRecordBuilder activationRecordBuilder = this.BuildActivationRecord();

            this._pipelineSlots         = activationRecordBuilder.PipelineSlots;
            this._variableSlots         = activationRecordBuilder.VariableSlots;
            this.ValidAttributeArgument = true;
        }
Ejemplo n.º 3
0
        internal ScriptBlockNode(
            ParameterDeclarationNode parameterDeclaration,
            ParseTreeNode begin,
            ParseTreeNode process,
            ParseTreeNode end,
            ParseTreeNode dynamicParams,
            List <AttributeNode> attributes,
            List <Token> helpComments,
            List <List <Token> > parameterComments)
        {
            this._parameterDeclarationNode = parameterDeclaration;
            this._begin             = begin;
            this._process           = process;
            this._end               = end;
            this._dynamicParams     = dynamicParams;
            this._attributes        = attributes;
            this._helpComments      = helpComments;
            this._parameterComments = parameterComments;
            ActivationRecordBuilder activationRecordBuilder = this.BuildActivationRecord();

            this._pipelineSlots         = activationRecordBuilder.PipelineSlots;
            this._variableSlots         = activationRecordBuilder.VariableSlots;
            this.ValidAttributeArgument = true;
        }
Ejemplo n.º 4
0
 internal override void Visit(ParameterDeclarationNode node) => this.preOrderNodes.Add((ParseTreeNode)node);
 internal override void Visit(ParameterDeclarationNode node) => this.ReportError((ParseTreeNode)node, "ParameterDeclarationNotSupportedInDataSection");