Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add comment and handle intersection types in gotoType#4698

Closed
mhegazy wants to merge 3 commits into
release-1.6microsoft/TypeScript:release-1.6from
handelIntersectionmicrosoft/TypeScript:handelIntersectionCopy head branch name to clipboard
Closed

Add comment and handle intersection types in gotoType#4698
mhegazy wants to merge 3 commits into
release-1.6microsoft/TypeScript:release-1.6from
handelIntersectionmicrosoft/TypeScript:handelIntersectionCopy head branch name to clipboard

Conversation

@mhegazy

@mhegazy mhegazy commented Sep 8, 2015

Copy link
Copy Markdown
Contributor

Follow up on #4632

Comment thread src/services/services.ts Outdated

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.

synthetic -> a synthetic

union of -> union/intersection of

Comment thread src/services/services.ts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would rewrite it as

if (syntheticPropertyKind) {
    return syntheticPropertyKind;
}
let typeOfSyntheticProperty = typeChecker.getTypeOfSymbolAtLocation(symbol, location);
return typeOfSyntheticProperty.getCallSignatures().length 
    ?  ScriptElementKind.memberFunctionElement
    : ScriptElementKind.memberVariableElement;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

btw, are all changes in this block just renames?

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.

yes.

@DanielRosenwasser

Copy link
Copy Markdown
Member

Can you port this into master @mhegazy?

@DanielRosenwasser

Copy link
Copy Markdown
Member

Ping

1 similar comment
@DanielRosenwasser

Copy link
Copy Markdown
Member

Ping

@RyanCavanaugh

Copy link
Copy Markdown
Member

He's in Egypt 😉 Does someone else need to handle this? I don't see a bug on it

@mhegazy

mhegazy commented Dec 30, 2016

Copy link
Copy Markdown
Contributor Author

this is fairly stale by now. closing.

@mhegazy mhegazy closed this Dec 30, 2016
@mhegazy mhegazy deleted the handelIntersection branch December 30, 2016 22:56
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.