This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Merging exports and imports
Dániel Stein edited this page Feb 26, 2016
·
3 revisions
import { doStuff } from "export";
doStuff();
export default function doStuff() {}
- It's easy to see that there are 2 separate AST+Scope graphs with only one connection.
- Both of these graphs would contain one
BindingIdentifier
node with a name ofdoStuff
. - If these are not merged export-time (and they should not be), I only need to merge these nodes based on various rules. See:
- For some reason these two nodes are already merged together. I've used the same
GraphIterator
instance, so if these two were the sameObject
s in Java, they are represented by the same node in the graph. With the static parsing function in Shift this should not happen.
Codemodel-Rifle // Graph-based incremental static analysis of ECMAScript 6 source code repositories
All code in this repository is available under the Eclipse Public License v1.0 and is supported by the MTA-BME Lendület Research Group on Cyber-Physical Systems.