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; }
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; }
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; }
internal override void Visit(ParameterDeclarationNode node) => this.preOrderNodes.Add((ParseTreeNode)node);
internal override void Visit(ParameterDeclarationNode node) => this.ReportError((ParseTreeNode)node, "ParameterDeclarationNotSupportedInDataSection");