GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — Create separate constructors for Tokens and Identifiers by sheetalkamat · Pull Request #9529 · microsoft/TypeScript Conversation
|
| public jsDocComments: JSDocComment[]; | ||
| public __tokenTag: any; | ||
|
|
||
| constructor(public pos: number, public end: number) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
can you list all assignments to properties in the same order as in the NodeObject ?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
They are in same order as node object
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
i understand. it just took me a bit to verify that by looking at the ones done in the constructor explicitly and the ones done because they are parameter properties.
my comment is to not use parameter properties just to make it clear what the order is.
also worth adding a comment that these need to stay in sync on all three classes.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sure will do.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, that's my fault. :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.