You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support multiple definitons: Binary operators (#32)
Whenever a binary operator was in the chain, it would make all fields to not be found further down the line
This supports find fields in constructs like this:
```
{
my_field+: (import 'test') + (import 'test2')
}
```
Note: the tests are getting pretty intense. I'm planning a refactor once I've got the cases I want working. I'll probably set up some benchmarking as well, see if I can find some low-hanging fruits for performance improvements
This builds upon #30 and #31
Issue: #6
Copy file name to clipboardExpand all lines: pkg/server/testdata/goto-overrides.jsonnet
+1
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@
37
37
carried_nested_string:self.a.nested1.hello2, // This should refer to the initial definition (map 3)
38
38
carried_nested_string_from_local:self.a.nested1.from_local, // This should refer to the definition specified in a local in the base file
39
39
carried_nested_string_from_import:self.a.nested1.from_import, // This should refer to the definition specified in an import in the base file
40
+
carried_nested_string_from_second_import:self.a.nested1.from_second_import, // This should refer to the definition specified in an import in the base file
40
41
41
42
clobbered_string:self.a.hello2, // This should refer to the override only (map 4)
42
43
clobbered_nested_string:self.a.nested1.hello, // This should refer to the override only (map 4)
0 commit comments