go-jsonnet/testdata/object_local_self_super.jsonnet
Stanisław Barzowski c3459153df Location, error formatting and stack trace improvements (#59)
* Location, error formatting and stack trace improvements

* Static context for AST nodes
* Thunks no longer need `name`
* Prototype for showing snippets in error messages (old format still
available)
* Use ast.Function to represent methods and local function sugar.
* Change tests so that the error output is pretty
2017-10-03 14:27:44 -04:00

2 lines
105 B
Jsonnet

{ local x = self, y:: x, z: 42, foo: "xxx" } { local x = super.y, foo: x.z, bar: x.foo, baz: super.foo }