commit | 5754dc138bad047722bd91011eab699684f7ca3f | [log] [tgz] |
---|---|---|
author | Todd Wang <toddw@google.com> | Wed Nov 18 12:43:39 2015 -0800 |
committer | Todd Wang <toddw@google.com> | Wed Nov 18 12:43:39 2015 -0800 |
tree | 0bed04961c9d675dd974fe15d11b37e0de99e410 | |
parent | 3293294432d07683df804eeedafc7b5ef66c1934 [diff] |
media-sharing: Remove variable name conflicts from VDL generated Go code The previous VDL generated Go code contained common variable names, such as ctx, opts and err. This meant that users couldn't pick these names for their variables. This CL fixes those cases. Note that we already generate different code for exported interfaces vs. unexported implementations. The interfaces use user-provided variable names, which is better for documentation, while the implementations already avoid conflicts by using generated variables names i0, i1, ... for input args, and similarly o0, o1, ... for output args. This CL ensures the generated interfaces use _ for non-user provided variables, to avoid any possible naming conflict. Fixes v.io/i/912 MultiPart: 6/7 Change-Id: I835bf9069c3076540c1d67c50088c6833ba33f76
This is an example application built on the Vanadium stack.
See design doc here: https://docs.google.com/document/d/1TT7eiSPJpGiAS__NNf51RZEAEio2myKUmH0jM3k_OxI