From 331b9c13177b936f6bf7fea29b141cfc05ece9f6 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Mon, 29 Feb 2016 10:34:34 -0800 Subject: [PATCH] fix(transformers): special case types some built-in types, so they can be resolved --- .../template_compiler/compile_data_creator.dart | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules_dart/transform/lib/src/transform/template_compiler/compile_data_creator.dart b/modules_dart/transform/lib/src/transform/template_compiler/compile_data_creator.dart index 03ce709415775..93e7603e5497c 100644 --- a/modules_dart/transform/lib/src/transform/template_compiler/compile_data_creator.dart +++ b/modules_dart/transform/lib/src/transform/template_compiler/compile_data_creator.dart @@ -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(