commit | bb9703d5650495c9a54b875eddc179532134370e | [log] [tgz] |
---|---|---|
author | Todd Wang <toddw@google.com> | Fri Mar 11 16:10:42 2016 -0800 |
committer | Todd Wang <toddw@google.com> | Fri Mar 11 16:10:42 2016 -0800 |
tree | a801b9bf783752927b46e0de29054c3c3980d843 | |
parent | 5dc9b1a6725cb9813796a60ee4fc48b1f7c1c436 [diff] |
v23: Change vdl go generator to emit a single file. Here's the old behavior. In each vdl package, we generate *.go files that match the *.vdl file names. v.io/x/lib/foo/a.vdl v.io/x/lib/foo/a.vdl.go # genfile v.io/x/lib/foo/b.vdl v.io/x/lib/foo/b.vdl.go #genfile v.io/x/lib/bar/bar.vdl v.io/x/lib/bar/bar.vdl.go # genfile Here's the new behavior. In each vdl package, we generate a single <package name>.vdl.go file. v.io/x/lib/foo/a.vdl v.io/x/lib/foo/b.vdl v.io/x/lib/foo/foo.vdl.go #genfile v.io/x/lib/bar/bar.vdl v.io/x/lib/bar/bar.vdl.go # genfile The purpose of this change is to make it easier to deal with initialization ordering issues in our generated code, and to make the codegen simpler. Those larger goals will be tackled in subsequent CLs; this is the big one with lots of file moves and deletions. Note that the new vdl compiler will automatically delete any old *.vdl.go files after it has successfully generated code. That is only for the transitional step; we will remove that logic after everyone has switched over. Also removed the vdl -exts flag, which used to allow the user to change the set of extensions to consider vdl files. That was used long ago to deal with experimental vdl features, and hasn't been used in a while. MultiPart: 1/7 Change-Id: Icbcfef561315b29253b229eaaa621a9f6327b8c4
This repository defines the Go APIs of Vanadium.