-
Notifications
You must be signed in to change notification settings - Fork 27
A combination of a number of commits to tidy up the PR backlog #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Source/buildimplementationjs.go
Outdated
returnValue := "" | ||
if param.ParamType == "class" { | ||
returnValue = fmt.Sprintf("createV8Instance(objectCreator, param%s, %s_MapClassIdToInjectionClassType(param%s->%s()))", param.ParamName, subComponent.NameSpace, param.ParamName, subComponent.Global.ClassTypeIdMethod) | ||
returnValue = fmt.Sprintf("param%s?createV8Instance(objectCreator, param%s, %s_MapClassIdToInjectionClassType(param%s->%s())):v8::Local<v8::Object>()", param.ParamName, param.ParamName, subComponent.NameSpace, param.ParamName, subComponent.Global.ClassTypeIdMethod) // Very bad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is a huge mouth full and hard to read. but you are not introducing that pattern here.
I would even go as far as to remove the comment, or atleast say in the comment that you are not happy with the long ternary statement itself.
Would need some refactoring to get rid of...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I left that in accidentally because I did something 'very bad', changed it and then left the comment. I'll get it removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No its that line. It is just hard to read. I'll do something about that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please look into my request about the // very bad comment
other than that, looks good!
" retVal = createV8Instance(objectCreator, param%s, %s_MapClassIdToInjectionClassType(param%s->%s()));", | ||
param.ParamName, subComponent.NameSpace, param.ParamName, subComponent.Global.ClassTypeIdMethod) | ||
writer.Writeln("}") | ||
} else if param.ParamType == "enum" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh. I already changed it.
Format go files using gofmt
Reintroduce case insensitive method and property names in the javascript bindings
Use method delarations instead of arrow function in the generated typescript
Support optionalclass return values in the javascript bindings
Don't prepend c++ error messages with "Error: "