Skip to content

Don't intern all strings and numbers. Just the ones used as declaration names#2177

Merged
CyrusNajmabadi merged 4 commits into
masterfrom
intern
Mar 2, 2015
Merged

Don't intern all strings and numbers. Just the ones used as declaration names#2177
CyrusNajmabadi merged 4 commits into
masterfrom
intern

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/services/services.ts
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.

Wouldn't you be more curious as to whether the element access is part of the LHS of an assignment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No. For example, if you have:

foo(a['propname'])

we simply want to add 'propname' into the name table any time we see this, so we can effectively do 'Find All Refs' on a property called 'propname'.

@DanielRosenwasser
Copy link
Copy Markdown
Member

👍

CyrusNajmabadi added a commit that referenced this pull request Mar 2, 2015
Don't intern all strings and numbers.  Just the ones used as declaration names
@CyrusNajmabadi CyrusNajmabadi merged commit 0de61cb into master Mar 2, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the intern branch March 2, 2015 22:36
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
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.

3 participants