Skip to content

Improve dot vs colon method invocations - #109

Closed
dmarcuse wants to merge 4 commits into
TypeScriptToLua:masterfrom
dmarcuse:feature/dot-method-decorator
Closed

Improve dot vs colon method invocations#109
dmarcuse wants to merge 4 commits into
TypeScriptToLua:masterfrom
dmarcuse:feature/dot-method-decorator

Conversation

@dmarcuse

Copy link
Copy Markdown
Contributor

This implements #108, as well as a couple other fixes:

  • Adds a !DotMethod decorator, which can be used on classes, interfaces, and methods to indicate they should be called using dot syntax (e.g. instance.method() as opposed to instance:method())
  • Fixes static methods, which are now always called using dot syntax
  • Adds a test that ensures that the appropriate syntax is used with classes, interfaces, instance methods, static methods, and the decorator.

@Perryvw Perryvw mentioned this pull request Jun 3, 2018
@dmarcuse

dmarcuse commented Jun 4, 2018

Copy link
Copy Markdown
Contributor Author

Closed in favor of #111

@dmarcuse dmarcuse closed this Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant