Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

emitImports doesn't work for instanceof #337

Open
alexeagle opened this issue Feb 7, 2016 · 0 comments
Open

emitImports doesn't work for instanceof #337

alexeagle opened this issue Feb 7, 2016 · 0 comments

Comments

@alexeagle
Copy link
Contributor

For a TS program like
var y = x instanceof ArrayBuffer;
the produced Dart program should have
import "dart:typed_arrays"
but it's missing, because we only traverse the AST looking for ts.SyntaxKind.TypeReference nodes, while the instanceof expression makes a tree like

BinaryExpression
- Identifier
- InstanceOfKeyword
- Identifier
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant