public LuaIdentifierNameSyntax Transpile(JassParameterSyntax parameter) { RegisterLocalVariableType(parameter); return(Transpile(parameter.IdentifierName)); }
private void RegisterLocalVariableType(JassParameterSyntax parameter) { _localTypes.Add(parameter.IdentifierName.Name, parameter.Type); }
public void Render(JassParameterSyntax parameter) { Render(parameter.Type); Write(' '); Render(parameter.IdentifierName); }
public ParameterSyntax Transpile(JassParameterSyntax parameter) { return(SyntaxFactory.Parameter(Transpile(parameter.IdentifierName)) .WithType(Transpile(parameter.Type))); }