Skip to content

Commit

Permalink
fix(transformers): special case types some built-in types, so they ca…
Browse files Browse the repository at this point in the history
…n be resolved
  • Loading branch information
vsavkin committed Feb 29, 2016
1 parent 4a93f58 commit 331b9c1
Showing 1 changed file with 12 additions and 2 deletions.
Expand Up @@ -215,14 +215,24 @@ class _CompileDataCreator {
} else if (_isPrimitive(id.name)) {
return id;

// TODO: move the following if statements into transformer configuration
} else if (id.name == "Window") {
return new CompileIdentifierMetadata(name: "Window", moduleUrl: 'dart:html');

} else if (id.name == "Clock") {
return new CompileIdentifierMetadata(name: "Clock", moduleUrl: 'dart:time');
return new CompileIdentifierMetadata(name: "Clock", moduleUrl: 'asset:quiver/time/clock.dart');

} else if (id.name == "Profiler") {
return new CompileIdentifierMetadata(name: "Clock", moduleUrl: 'profiler');
return new CompileIdentifierMetadata(name: "Profiler", moduleUrl: 'asset:perf_api/perf_api.dart');

} else if (id.name == "Campaign") {
return new CompileIdentifierMetadata(name: "Campaign", moduleUrl: 'unspecified');

} else if (id.name == "PreloadData") {
return new CompileIdentifierMetadata(name: "PreloadData", moduleUrl: 'unspecified');

} else if (id.name == "FiberMarket") {
return new CompileIdentifierMetadata(name: "FiberMarket", moduleUrl: 'unspecified');

} else {
log.error(
Expand Down

0 comments on commit 331b9c1

Please sign in to comment.