|
Module import
Works with local modules and standard modules.
import iterator from '@iter';
module m {
export var x = 42;
}
import {x: renamed} from m;
import * is done by associating the module expression with the tree during the
ImportStarVisitor phase. Once we get to the tranformation phase we get the
module symbol and we know what it exports.
import * from '@name';
BUG=http://code.google.com/p/traceur-compiler/issues/detail?id=26
TEST=feature/Modules/*
Committed: https://code.google.com/p/traceur-compiler/source/detail?r=f4f8788
Total comments: 21
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+423 lines, -161 lines) |
Patch |
|
M |
example/collection.html
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
src/codegeneration/ModuleTransformer.js
|
View
|
1
2
|
10 chunks |
+132 lines, -65 lines |
2 comments
|
Download
|
|
M |
src/codegeneration/ProgramTransformer.js
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/codegeneration/module/ExportVisitor.js
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
A |
src/codegeneration/module/ImportStarVisitor.js
|
View
|
|
1 chunk |
+55 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/codegeneration/module/ModuleVisitor.js
|
View
|
1
2
|
7 chunks |
+23 lines, -16 lines |
0 comments
|
Download
|
|
M |
src/codegeneration/module/ValidationVisitor.js
|
View
|
|
4 chunks |
+19 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/outputgeneration/ParseTreeWriter.js
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime/modules.js
|
View
|
1
2
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/semantics/ModuleAnalyzer.js
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/semantics/symbols/Project.js
|
View
|
1
2
|
4 chunks |
+39 lines, -1 line |
0 comments
|
Download
|
|
M |
src/semantics/symbols/Symbol.js
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/syntax/ParseTreeVisitor.js
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/syntax/Parser.js
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/traceur.js
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/util/url.js
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/feature/Collection/ArrayLike.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/feature/Collection/Call.js
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/feature/Collection/Simple.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
test/feature/Modules/Error_MissingExport.js
|
View
|
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/feature/Modules/ImportFromLocalModule.js
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/feature/Modules/ImportFromLocalModuleStar.js
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/feature/Modules/ImportFromStandardLibrary.js
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/feature/Modules/ImportFromStandardLibraryStar.js
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/feature/PrivateNames/Inherited.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/feature/PrivateNames/Name.js
|
View
|
|
1 chunk |
+9 lines, -9 lines |
0 comments
|
Download
|
|
M |
test/feature/PrivateNames/Object.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/feature/Yield/Tree.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/feature/feature_test.html
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/unit/codegeneration/module_transformer_test.html
|
View
|
1
2
|
8 chunks |
+23 lines, -32 lines |
0 comments
|
Download
|
Total messages: 8
|