internal ScriptBlock ParseScriptBlock(string script, bool interactiveCommand) { ScriptBlockNode scriptBlock = this.EngineParser.ParseScriptBlock(script, interactiveCommand); if (interactiveCommand) { this.EngineParser.SetPreviousFirstLastToken(this._context); } return((ScriptBlock)scriptBlock.Execute(this._context)); }
internal override void Visit(ScriptBlockNode node) => this.preOrderNodes.Add((ParseTreeNode)node);
public FunctionDeclarationNode(Token name, ScriptBlockNode scriptBlockNode) { this.NodeToken = name; this._body = scriptBlockNode; }
internal override void Visit(ScriptBlockNode node) => this.ReportError((ParseTreeNode)node, "ScriptBlockNotSupportedInDataSection");