Skip to content

Use an enum in checkClassForDuplicateDeclarations to make it prettier#10345

Merged
2 commits merged into
masterfrom
meaning
Aug 15, 2016
Merged

Use an enum in checkClassForDuplicateDeclarations to make it prettier#10345
2 commits merged into
masterfrom
meaning

Conversation

@ghost

@ghost ghost commented Aug 15, 2016

Copy link
Copy Markdown

No description provided.

Comment thread src/compiler/checker.ts Outdated

function checkClassForDuplicateDeclarations(node: ClassLikeDeclaration) {
const getter = 1, setter = 2, property = getter | setter;
const enum Meaning {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is Accessor already taken? (this is low priority, if you want to check in as-is, it's fine)

@sandersn

Copy link
Copy Markdown
Member

👍

@ghost ghost merged commit 7ee05ba into master Aug 15, 2016
@ghost ghost deleted the meaning branch August 15, 2016 20:18
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants