|
|
First step towards having patch files for generic libraries.
As proof of concept, it patches a non-functional htmlEscape from web.dart.
Still has lots of restrictions:
- Only loads a normal library (no syntax extension to mark patches as
separate from additions). Assumes every element is a patch.
- Only handles top-level functions (probably won't handle getters/setters
or constructors), and not classes.
- Doesn't check that the patched function is marked external (no syntax for
that in the spec yet, doesn't even require it to be abstract).
- Doesn't check that the signature of the patch function matches the original
function.
- Probably won't work for 'coreimpl', as loaded from 'js_helper', since it's not
loaded using the 'dart:' scheme.
Committed: https://code.google.com/p/dart/source/detail?r=9246
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+194 lines, -35 lines) |
Patch |
 |
M |
lib/compiler/implementation/apiimpl.dart
|
View
|
|
3 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/compiler.dart
|
View
|
1
|
1 chunk |
+68 lines, -0 lines |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/elements/elements.dart
|
View
|
1
|
7 chunks |
+47 lines, -9 lines |
0 comments
|
Download
|
 |
A + |
lib/compiler/implementation/lib/web.dart
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
lib/compiler/implementation/lib/web.dartp
|
View
|
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/library_map.dart
|
View
|
|
1 chunk |
+38 lines, -14 lines |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/scanner/listener.dart
|
View
|
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/scanner/scanner_task.dart
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/source_file.dart
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/source_map_builder.dart
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tests/compiler/dart2js/mock_compiler.dart
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|