/// <summary> /// Initializes a new instance of <see cref="Dependency"/> AST node. /// </summary> /// <param name="variable">The name of the dependency definition.</param> /// <param name="functionBody">The body of the dependency definition.</param> /// <param name="codeText">The string representation of the dependency defintion.</param> /// <param name="variables">The variables associated with the dependency definition.</param> public Dependency(Identifier variable, Node functionBody, string codeText, Variables variables) { this.variable = variable; this.functionBody = functionBody; this.codeText = codeText; this.variables = variables; }
private void TearDownUserDefFunction() { this.isfunction = false; this.function = null; this.variables = null; }
private void SetupUserDefFunction() { this.isfunction = true; this.function = null; this.variables = new Variables(); }
/// <summary> /// Builds a <see cref="Dependency"/> node. /// </summary> /// <param name="variable">The name of the dependency definition.</param> /// <param name="functionBody">The body of the dependency definition.</param> /// <param name="codeText">The string representation of the dependency defintion.</param> /// <param name="variables">The variables associated with the dependency definition.</param> /// <returns>Returns a <see cref="Dependency"/> node.</returns> public static Dependency Dependency(Identifier variable, Node functionBody, string codeText, Variables variables) { return new Dependency(variable, functionBody, codeText, variables); }