Data
- Added new type `VariableParameter` for function parameters Parser - Generate instances of `VariableParameter` instead of just `Variable` (direct) for function parameters - Set the Container of the VariableParameter(s) of a function definition to that of the Function (definition) TypeCheck - Updated type to `VariableParameter` (just to be more specific and clear) Dependency - Added branch to pool VariableParameter but NOT add them as dnode's (that would cause code gen to emit declarations for parameters - which is something we do not want). Set as visited, pool for lookup and set Context. DGen - Added variable parameter symbol mapping to `generateSignature()` for function signatures Variables (special DNode type) - Added note, do we need these? Test cases - Updated test case `simple_function_decls.t` to test parameter variable usage (assignment and expression usage)function_parameters_fix
parent
2a12c310a6
commit
8972a277f3
Loading…
Reference in New Issue