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

emitImports doesn't work for instanceof #337

@alexeagle

Description

@alexeagle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions