|
|
Implement support for specifying string interopolation style variable substitution in the import and source statements.
e.g:
sivamach[runtime]>more /workspace/asiva/expr/test1.dart
#library('test1.dart');
#import('${GOOGLE}$SRC/test2.dart');
#import('$DART/test3.dart');
test1() {
print("test1");
}
main() {
test1();
test2();
test3();
}
sivamach[runtime]>more /workspace/asiva/expr/src/test2.dart
#library('test2.dart');
#source('$GOOGLE$SRC/test2a.dart');
test2() {
print("test2");
test2a();
}
sivamach[runtime]>more /workspace/asiva/expr/src/test2a.dart
test2a() {
print("test2a");
}
sivamach[runtime]>more /workspace/asiva/expr/src/test3.dart
#library('test3.dart');
#source('test3a.dart');
test3() {
print("test3");
test3a();
}
sivamach[runtime]>more /workspace/asiva/expr/src/test3a.dart
test3a() {
print("test3a");
}
sivamach[runtime]>out/Debug_ia32/dart --import_map=GOOGLE,/workspace/asiva/expr --import_map=SRC,src --import_map=DART,/workspace/asiva/expr/src /workspace/asiva/expr/test1.dart
test1
test2
test2a
test3
test3a
Committed: https://code.google.com/p/dart/source/detail?r=4199
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+466 lines, -84 lines) |
Patch |
 |
M |
bin/builtin.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
bin/dartutils.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
bin/dartutils.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
bin/gen_snapshot.cc
|
View
|
1
2
3
|
4 chunks |
+20 lines, -5 lines |
0 comments
|
Download
|
 |
M |
bin/main.cc
|
View
|
1
2
3
|
8 chunks |
+45 lines, -6 lines |
0 comments
|
Download
|
 |
M |
include/dart_api.h
|
View
|
1
2
3
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
A |
tests/vm/src/mysrc/test2.dart
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/vm/src/mysrc/test2a.dart
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/vm/src/mysrc/test3.dart
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/vm/src/mysrc/test3a.dart
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tests/vm/src/test1.dart
|
View
|
1
2
3
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
vm/dart_api_impl.cc
|
View
|
1
2
3
|
5 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
vm/dart_api_impl_test.cc
|
View
|
1
2
3
|
19 chunks |
+183 lines, -46 lines |
0 comments
|
Download
|
 |
M |
vm/object.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
vm/object.cc
|
View
|
1
2
3
|
3 chunks |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
vm/parser.h
|
View
|
1
2
3
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
vm/parser.cc
|
View
|
1
2
3
|
8 chunks |
+85 lines, -11 lines |
0 comments
|
Download
|
 |
M |
vm/raw_object.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
vm/snapshot_test.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
vm/unit_test.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
vm/unit_test.cc
|
View
|
1
2
3
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|