jni: 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: 2/7

Change-Id: Ifcfd314190bbebfcb3c1b2e70c32b2f394854e5a
1 file changed