From 6e4477fc0880e12c9f4c2959e4bf1ae075794bc3 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 19 Sep 2014 23:03:36 +0000 Subject: [PATCH] WIP --- modules/core/src/compiler/compiler.es6d | 16 ++++++++++++++++ modules/core/src/compiler/proto_view.es6d | 0 modules/core/src/facade.dart | 0 modules/core/src/facade.es6 | 0 4 files changed, 16 insertions(+) create mode 100644 modules/core/src/compiler/compiler.es6d create mode 100644 modules/core/src/compiler/proto_view.es6d create mode 100644 modules/core/src/facade.dart create mode 100644 modules/core/src/facade.es6 diff --git a/modules/core/src/compiler/compiler.es6d b/modules/core/src/compiler/compiler.es6d new file mode 100644 index 0000000000..3ebc08fbe1 --- /dev/null +++ b/modules/core/src/compiler/compiler.es6d @@ -0,0 +1,16 @@ +import {Future} from '../facade'; +import {ProtoView} from './proto_view'; + +export class Compiler { + /** + * # Why future? + * - compilation will load templates. Instantiating views before templates are loaded will + * complicate the Directive code. BENEFIT: view instantiation become synchrnous. + * # Why result that is independent of injector? + * - don't know about injector in deserialization + * - compile does not need the injector, only the ViewFactory does + */ + @of(ProtoView) Future compile(TemplateElement element) { + } + +} \ No newline at end of file diff --git a/modules/core/src/compiler/proto_view.es6d b/modules/core/src/compiler/proto_view.es6d new file mode 100644 index 0000000000..e69de29bb2 diff --git a/modules/core/src/facade.dart b/modules/core/src/facade.dart new file mode 100644 index 0000000000..e69de29bb2 diff --git a/modules/core/src/facade.es6 b/modules/core/src/facade.es6 new file mode 100644 index 0000000000..e69de29bb2