Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ScriptLeafNodeVariableReference.cs
1using System;
2
3namespace Waher.Script.Model
4{
9 {
13 protected readonly string variableName;
14
23 : base(Start, Length, Expression)
24 {
25 this.variableName = VariableName;
26 }
27
31 public string VariableName => this.variableName;
32
34 public override bool Equals(object obj)
35 {
36 return obj is ScriptLeafNodeVariableReference O &&
37 this.variableName.Equals(O.variableName) &&
38 base.Equals(obj);
39 }
40
42 public override int GetHashCode()
43 {
44 int Result = base.GetHashCode();
45 Result ^= Result << 5 ^ this.variableName.GetHashCode();
46 return Result;
47 }
48
49 }
50}
Class managing a script expression.
Definition: Expression.cs:39
Base class for leaf nodes in a parsed script tree.
readonly string variableName
Name of variable being referenced by the node.
ScriptLeafNodeVariableReference(string VariableName, int Start, int Length, Expression Expression)
Represents a variable reference.
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92