feat(dart/transform): Generate ChangeDetector classes

Use the `ProtoViewDto` created by the render `Compiler` to create a
`ChangeDetectorDefinition`.

From there, generate a subclass of `AbstractChangeDetector` for each
`ChangeDetectorDefinition`.

Run some basic unit tests for the dynamic and JIT change detectors on
pre-generated change detectors.
This commit is contained in:
Tim Blasi
2015-05-14 13:14:45 -07:00
parent 383f0a1f30
commit 8a3b0b366f
15 changed files with 1105 additions and 217 deletions

View File

@ -7,15 +7,17 @@ module.exports = function(gulp) {
console.log('Dart SDK detected');
if (process.platform === 'win32') {
DART_SDK = {
PUB: 'pub.bat',
ANALYZER: 'dartanalyzer.bat',
DARTFMT: 'dartfmt.bat'
DARTFMT: 'dartfmt.bat',
PUB: 'pub.bat',
VM: 'dart.bat'
};
} else {
DART_SDK = {
PUB: 'pub',
ANALYZER: 'dartanalyzer',
DARTFMT: 'dartfmt'
DARTFMT: 'dartfmt',
PUB: 'pub',
VM: 'dart'
};
}
} catch (e) {