|
1 | 1 | package ast
|
2 | 2 |
|
3 | 3 | import (
|
4 |
| - "github.com/antonmedv/expr/internal/helper" |
| 4 | + "github.com/antonmedv/expr/internal/file" |
5 | 5 | )
|
6 | 6 |
|
7 |
| -func (n *NilNode) SetLocation(l helper.Location) { |
| 7 | +func (n *NilNode) SetLocation(l file.Location) { |
8 | 8 | n.l = l
|
9 | 9 | }
|
10 | 10 |
|
11 |
| -func (n *NilNode) GetLocation() helper.Location { |
| 11 | +func (n *NilNode) GetLocation() file.Location { |
12 | 12 | return n.l
|
13 | 13 | }
|
14 | 14 |
|
15 |
| -func (n *IdentifierNode) SetLocation(l helper.Location) { |
| 15 | +func (n *IdentifierNode) SetLocation(l file.Location) { |
16 | 16 | n.l = l
|
17 | 17 | }
|
18 | 18 |
|
19 |
| -func (n *IdentifierNode) GetLocation() helper.Location { |
| 19 | +func (n *IdentifierNode) GetLocation() file.Location { |
20 | 20 | return n.l
|
21 | 21 | }
|
22 | 22 |
|
23 |
| -func (n *IntegerNode) SetLocation(l helper.Location) { |
| 23 | +func (n *IntegerNode) SetLocation(l file.Location) { |
24 | 24 | n.l = l
|
25 | 25 | }
|
26 | 26 |
|
27 |
| -func (n *IntegerNode) GetLocation() helper.Location { |
| 27 | +func (n *IntegerNode) GetLocation() file.Location { |
28 | 28 | return n.l
|
29 | 29 | }
|
30 | 30 |
|
31 |
| -func (n *FloatNode) SetLocation(l helper.Location) { |
| 31 | +func (n *FloatNode) SetLocation(l file.Location) { |
32 | 32 | n.l = l
|
33 | 33 | }
|
34 | 34 |
|
35 |
| -func (n *FloatNode) GetLocation() helper.Location { |
| 35 | +func (n *FloatNode) GetLocation() file.Location { |
36 | 36 | return n.l
|
37 | 37 | }
|
38 | 38 |
|
39 |
| -func (n *BoolNode) SetLocation(l helper.Location) { |
| 39 | +func (n *BoolNode) SetLocation(l file.Location) { |
40 | 40 | n.l = l
|
41 | 41 | }
|
42 | 42 |
|
43 |
| -func (n *BoolNode) GetLocation() helper.Location { |
| 43 | +func (n *BoolNode) GetLocation() file.Location { |
44 | 44 | return n.l
|
45 | 45 | }
|
46 | 46 |
|
47 |
| -func (n *StringNode) SetLocation(l helper.Location) { |
| 47 | +func (n *StringNode) SetLocation(l file.Location) { |
48 | 48 | n.l = l
|
49 | 49 | }
|
50 | 50 |
|
51 |
| -func (n *StringNode) GetLocation() helper.Location { |
| 51 | +func (n *StringNode) GetLocation() file.Location { |
52 | 52 | return n.l
|
53 | 53 | }
|
54 | 54 |
|
55 |
| -func (n *UnaryNode) SetLocation(l helper.Location) { |
| 55 | +func (n *UnaryNode) SetLocation(l file.Location) { |
56 | 56 | n.l = l
|
57 | 57 | }
|
58 | 58 |
|
59 |
| -func (n *UnaryNode) GetLocation() helper.Location { |
| 59 | +func (n *UnaryNode) GetLocation() file.Location { |
60 | 60 | return n.l
|
61 | 61 | }
|
62 | 62 |
|
63 |
| -func (n *BinaryNode) SetLocation(l helper.Location) { |
| 63 | +func (n *BinaryNode) SetLocation(l file.Location) { |
64 | 64 | n.l = l
|
65 | 65 | }
|
66 | 66 |
|
67 |
| -func (n *BinaryNode) GetLocation() helper.Location { |
| 67 | +func (n *BinaryNode) GetLocation() file.Location { |
68 | 68 | return n.l
|
69 | 69 | }
|
70 | 70 |
|
71 |
| -func (n *MatchesNode) SetLocation(l helper.Location) { |
| 71 | +func (n *MatchesNode) SetLocation(l file.Location) { |
72 | 72 | n.l = l
|
73 | 73 | }
|
74 | 74 |
|
75 |
| -func (n *MatchesNode) GetLocation() helper.Location { |
| 75 | +func (n *MatchesNode) GetLocation() file.Location { |
76 | 76 | return n.l
|
77 | 77 | }
|
78 | 78 |
|
79 |
| -func (n *PropertyNode) SetLocation(l helper.Location) { |
| 79 | +func (n *PropertyNode) SetLocation(l file.Location) { |
80 | 80 | n.l = l
|
81 | 81 | }
|
82 | 82 |
|
83 |
| -func (n *PropertyNode) GetLocation() helper.Location { |
| 83 | +func (n *PropertyNode) GetLocation() file.Location { |
84 | 84 | return n.l
|
85 | 85 | }
|
86 | 86 |
|
87 |
| -func (n *IndexNode) SetLocation(l helper.Location) { |
| 87 | +func (n *IndexNode) SetLocation(l file.Location) { |
88 | 88 | n.l = l
|
89 | 89 | }
|
90 | 90 |
|
91 |
| -func (n *IndexNode) GetLocation() helper.Location { |
| 91 | +func (n *IndexNode) GetLocation() file.Location { |
92 | 92 | return n.l
|
93 | 93 | }
|
94 | 94 |
|
95 |
| -func (n *MethodNode) SetLocation(l helper.Location) { |
| 95 | +func (n *MethodNode) SetLocation(l file.Location) { |
96 | 96 | n.l = l
|
97 | 97 | }
|
98 | 98 |
|
99 |
| -func (n *MethodNode) GetLocation() helper.Location { |
| 99 | +func (n *MethodNode) GetLocation() file.Location { |
100 | 100 | return n.l
|
101 | 101 | }
|
102 | 102 |
|
103 |
| -func (n *FunctionNode) SetLocation(l helper.Location) { |
| 103 | +func (n *FunctionNode) SetLocation(l file.Location) { |
104 | 104 | n.l = l
|
105 | 105 | }
|
106 | 106 |
|
107 |
| -func (n *FunctionNode) GetLocation() helper.Location { |
| 107 | +func (n *FunctionNode) GetLocation() file.Location { |
108 | 108 | return n.l
|
109 | 109 | }
|
110 | 110 |
|
111 |
| -func (n *BuiltinNode) SetLocation(l helper.Location) { |
| 111 | +func (n *BuiltinNode) SetLocation(l file.Location) { |
112 | 112 | n.l = l
|
113 | 113 | }
|
114 | 114 |
|
115 |
| -func (n *BuiltinNode) GetLocation() helper.Location { |
| 115 | +func (n *BuiltinNode) GetLocation() file.Location { |
116 | 116 | return n.l
|
117 | 117 | }
|
118 | 118 |
|
119 |
| -func (n *ClosureNode) SetLocation(l helper.Location) { |
| 119 | +func (n *ClosureNode) SetLocation(l file.Location) { |
120 | 120 | n.l = l
|
121 | 121 | }
|
122 | 122 |
|
123 |
| -func (n *ClosureNode) GetLocation() helper.Location { |
| 123 | +func (n *ClosureNode) GetLocation() file.Location { |
124 | 124 | return n.l
|
125 | 125 | }
|
126 | 126 |
|
127 |
| -func (n *PointerNode) SetLocation(l helper.Location) { |
| 127 | +func (n *PointerNode) SetLocation(l file.Location) { |
128 | 128 | n.l = l
|
129 | 129 | }
|
130 | 130 |
|
131 |
| -func (n *PointerNode) GetLocation() helper.Location { |
| 131 | +func (n *PointerNode) GetLocation() file.Location { |
132 | 132 | return n.l
|
133 | 133 | }
|
134 | 134 |
|
135 |
| -func (n *ConditionalNode) SetLocation(l helper.Location) { |
| 135 | +func (n *ConditionalNode) SetLocation(l file.Location) { |
136 | 136 | n.l = l
|
137 | 137 | }
|
138 | 138 |
|
139 |
| -func (n *ConditionalNode) GetLocation() helper.Location { |
| 139 | +func (n *ConditionalNode) GetLocation() file.Location { |
140 | 140 | return n.l
|
141 | 141 | }
|
142 | 142 |
|
143 |
| -func (n *ArrayNode) SetLocation(l helper.Location) { |
| 143 | +func (n *ArrayNode) SetLocation(l file.Location) { |
144 | 144 | n.l = l
|
145 | 145 | }
|
146 | 146 |
|
147 |
| -func (n *ArrayNode) GetLocation() helper.Location { |
| 147 | +func (n *ArrayNode) GetLocation() file.Location { |
148 | 148 | return n.l
|
149 | 149 | }
|
150 | 150 |
|
151 |
| -func (n *MapNode) SetLocation(l helper.Location) { |
| 151 | +func (n *MapNode) SetLocation(l file.Location) { |
152 | 152 | n.l = l
|
153 | 153 | }
|
154 | 154 |
|
155 |
| -func (n *MapNode) GetLocation() helper.Location { |
| 155 | +func (n *MapNode) GetLocation() file.Location { |
156 | 156 | return n.l
|
157 | 157 | }
|
158 | 158 |
|
159 |
| -func (n *PairNode) GetLocation() helper.Location { |
| 159 | +func (n *PairNode) GetLocation() file.Location { |
160 | 160 | return n.l
|
161 | 161 | }
|
162 | 162 |
|
163 |
| -func (n *PairNode) SetLocation(l helper.Location) { |
| 163 | +func (n *PairNode) SetLocation(l file.Location) { |
164 | 164 | n.l = l
|
165 | 165 | }
|
0 commit comments