Skip to content

Find References and Dotted JSX Tags #7637

Closed
@jkillian

Description

@jkillian

TypeScript Version:
1.9.0-dev.20160322

Code

/// <reference path='fourslash.ts'/>

// @Filename: index.tsx
////const /*1*/obj = {Component: () => <div/>};
////const element = </*2*/obj.Component/>;

goTo.marker("1");
verify.referencesCountIs(2);

goTo.marker("2");
verify.referencesCountIs(2);

Expected behavior:
Test passes

Actual behavior:
Test fails: reference count is 1 at marker 1 and is 0 at marker 2.

Notes:
#7622 was great and seemed to fix a lot of bugs! It seems that this one still persists though, as found by @dallonf in palantir/tslint#1010

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions