refactor(build): explicitly mention `src` folder in imports

Export files are now directly under the module folder,
e.g. `core/core.js`. With this, an import like `core/core`
won’t need a path mapping (e.g. via `System.paths`) any more.
This adds the `src` folder to all other import statements as well.
This commit is contained in:
Tobias Bosch 2015-02-02 16:25:34 -08:00 committed by Alex Eagle
parent 9db13be4c7
commit 05ffdc9b44
160 changed files with 612 additions and 620 deletions

View File

@ -44,7 +44,7 @@ var CJS_COMPILER_OPTIONS = {
var _HTLM_DEFAULT_SCRIPTS_JS = [
{src: '/deps/traceur-runtime.js', mimeType: 'text/javascript'},
{src: '/rtts_assert/lib/rtts_assert.js', mimeType: 'text/javascript'},
{src: '/rtts_assert/rtts_assert.js', mimeType: 'text/javascript'},
{src: '/deps/es6-module-loader-sans-promises.src.js', mimeType: 'text/javascript'},
{src: '/deps/zone.js', mimeType: 'text/javascript'},
{src: '/deps/long-stack-trace-zone.js', mimeType: 'text/javascript'},
@ -78,11 +78,20 @@ var CONFIG = {
},
docs: 'dist/docs'
},
srcFolderMapping: {
'default': 'lib',
'**/benchmarks/**': 'web',
'**/benchmarks_external/**': 'web',
'**/example*/**': 'web'
srcFolderInsertion: {
js: {
'**': ''
},
dart: {
'**': 'lib',
'*/test/**': '',
'benchmarks/**': 'web',
'benchmarks/test/**': '',
'benchmarks_external/**': 'web',
'benchmarks_external/test/**': '',
'example*/**': 'web',
'example*/test/**': ''
}
},
deps: {
js: [
@ -145,7 +154,7 @@ var CONFIG = {
},
scriptsPerFolder: {
js: {
default: _HTLM_DEFAULT_SCRIPTS_JS,
'**': _HTLM_DEFAULT_SCRIPTS_JS,
'benchmarks/**':
[
{ src: '/deps/url_params_to_form.js', mimeType: 'text/javascript' }
@ -157,7 +166,7 @@ var CONFIG = {
].concat(_HTLM_DEFAULT_SCRIPTS_JS)
},
dart: {
default: _HTML_DEFAULT_SCRIPTS_DART,
'**': _HTML_DEFAULT_SCRIPTS_DART,
'benchmarks*/**':
[
{ src: '/deps/url_params_to_form.js', mimeType: 'text/javascript' }
@ -221,7 +230,7 @@ gulp.task('build/transpile.js.dev', transpile(gulp, gulpPlugins, {
dest: CONFIG.dest.js.dev,
outputExt: 'js',
options: CONFIG.transpile.options.js.dev,
srcFolderMapping: CONFIG.srcFolderMapping
srcFolderInsertion: CONFIG.srcFolderInsertion.js
}));
gulp.task('build/transpile.js.prod', transpile(gulp, gulpPlugins, {
@ -230,7 +239,7 @@ gulp.task('build/transpile.js.prod', transpile(gulp, gulpPlugins, {
dest: CONFIG.dest.js.prod,
outputExt: 'js',
options: CONFIG.transpile.options.js.prod,
srcFolderMapping: CONFIG.srcFolderMapping
srcFolderInsertion: CONFIG.srcFolderInsertion.js
}));
gulp.task('build/transpile.dart', transpile(gulp, gulpPlugins, {
@ -239,7 +248,7 @@ gulp.task('build/transpile.dart', transpile(gulp, gulpPlugins, {
dest: CONFIG.dest.dart,
outputExt: 'dart',
options: CONFIG.transpile.options.dart,
srcFolderMapping: CONFIG.srcFolderMapping
srcFolderInsertion: CONFIG.srcFolderInsertion.dart
}));
gulp.task('build/transpile/tools.cjs', transpile(gulp, gulpPlugins, {
@ -248,9 +257,7 @@ gulp.task('build/transpile/tools.cjs', transpile(gulp, gulpPlugins, {
dest: CONFIG.dest.cjs.tools,
outputExt: 'js',
options: CONFIG.transpile.options.cjs,
srcFolderMapping: {
'default': 'src'
}
srcFolderInsertion: CONFIG.srcFolderInsertion.js
}));
gulp.task('build/transpile/e2eTest.cjs', transpile(gulp, gulpPlugins, {
@ -259,9 +266,7 @@ gulp.task('build/transpile/e2eTest.cjs', transpile(gulp, gulpPlugins, {
dest: CONFIG.dest.cjs.e2eTest,
outputExt: 'js',
options: CONFIG.transpile.options.cjs,
srcFolderMapping: {
'default': 'src'
}
srcFolderInsertion: CONFIG.srcFolderInsertion.js
}));
// ------------
@ -270,21 +275,21 @@ gulp.task('build/transpile/e2eTest.cjs', transpile(gulp, gulpPlugins, {
gulp.task('build/html.js.dev', html(gulp, gulpPlugins, {
src: CONFIG.html.src.js,
dest: CONFIG.dest.js.dev,
srcFolderMapping: CONFIG.srcFolderMapping,
srcFolderInsertion: CONFIG.srcFolderInsertion.js,
scriptsPerFolder: CONFIG.html.scriptsPerFolder.js
}));
gulp.task('build/html.js.prod', html(gulp, gulpPlugins, {
src: CONFIG.html.src.js,
dest: CONFIG.dest.js.prod,
srcFolderMapping: CONFIG.srcFolderMapping,
srcFolderInsertion: CONFIG.srcFolderInsertion.js,
scriptsPerFolder: CONFIG.html.scriptsPerFolder.js
}));
gulp.task('build/html.dart', html(gulp, gulpPlugins, {
src: CONFIG.html.src.dart,
dest: CONFIG.dest.dart,
srcFolderMapping: CONFIG.srcFolderMapping,
srcFolderInsertion: CONFIG.srcFolderInsertion.dart,
scriptsPerFolder: CONFIG.html.scriptsPerFolder.dart
}));
@ -302,8 +307,7 @@ gulp.task('build/pubspec.dart', pubspec(gulp, gulpPlugins, {
gulp.task('build/analyze.dart', dartanalyzer(gulp, gulpPlugins, {
dest: CONFIG.dest.dart,
command: DART_SDK.ANALYZER,
srcFolderMapping: CONFIG.srcFolderMapping
command: DART_SDK.ANALYZER
}));
// ------------

View File

@ -42,14 +42,14 @@ module.exports = function(config) {
'/packages/path': 'http://localhost:9877/base/packages/path',
// Local dependencies, transpiled from the source.
'/packages/angular': 'http://localhost:9877/base/modules/angular/src',
'/packages/core': 'http://localhost:9877/base/modules/core/src',
'/packages/change_detection': 'http://localhost:9877/base/modules/change_detection/src',
'/packages/reflection': 'http://localhost:9877/base/modules/reflection/src',
'/packages/di': 'http://localhost:9877/base/modules/di/src',
'/packages/directives': 'http://localhost:9877/base/modules/directives/src',
'/packages/facade': 'http://localhost:9877/base/modules/facade/src',
'/packages/test_lib': 'http://localhost:9877/base/modules/test_lib/src',
'/packages/angular': 'http://localhost:9877/base/modules/angular',
'/packages/core': 'http://localhost:9877/base/modules/core',
'/packages/change_detection': 'http://localhost:9877/base/modules/change_detection',
'/packages/reflection': 'http://localhost:9877/base/modules/reflection',
'/packages/di': 'http://localhost:9877/base/modules/di',
'/packages/directives': 'http://localhost:9877/base/modules/directives',
'/packages/facade': 'http://localhost:9877/base/modules/facade',
'/packages/test_lib': 'http://localhost:9877/base/modules/test_lib',
},
preprocessors: {

View File

@ -2,7 +2,7 @@ var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng2 change detection benchmark', function () {
var URL = 'benchmarks/web/change_detection/change_detection_benchmark.html';
var URL = 'benchmarks/src/change_detection/change_detection_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng2 change detection benchmark', function () {
var URL = 'benchmarks/web/change_detection/change_detection_benchmark.html';
var URL = 'benchmarks/src/change_detection/change_detection_benchmark.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng2 compiler benchmark', function () {
var URL = 'benchmarks/web/compiler/compiler_benchmark.html';
var URL = 'benchmarks/src/compiler/compiler_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng2 compiler benchmark', function () {
var URL = 'benchmarks/web/compiler/compiler_benchmark.html';
var URL = 'benchmarks/src/compiler/compiler_benchmark.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng2 di benchmark', function () {
var URL = 'benchmarks/web/di/di_benchmark.html';
var URL = 'benchmarks/src/di/di_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng2 di benchmark', function () {
var URL = 'benchmarks/web/di/di_benchmark.html';
var URL = 'benchmarks/src/di/di_benchmark.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng2 element injector benchmark', function () {
var URL = 'benchmarks/web/element_injector/element_injector_benchmark.html';
var URL = 'benchmarks/src/element_injector/element_injector_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng2 element injector benchmark', function () {
var URL = 'benchmarks/web/element_injector/element_injector_benchmark.html';
var URL = 'benchmarks/src/element_injector/element_injector_benchmark.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng2 selector benchmark', function () {
var URL = 'benchmarks/web/compiler/selector_benchmark.html';
var URL = 'benchmarks/src/compiler/selector_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng2 selector benchmark', function () {
var URL = 'benchmarks/web/compiler/selector_benchmark.html';
var URL = 'benchmarks/src/compiler/selector_benchmark.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng2 tree benchmark', function () {
var URL = 'benchmarks/web/tree/tree_benchmark.html';
var URL = 'benchmarks/src/tree/tree_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng2 tree benchmark', function () {
var URL = 'benchmarks/web/tree/tree_benchmark.html';
var URL = 'benchmarks/src/tree/tree_benchmark.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -1,7 +1,7 @@
import {ListWrapper, MapWrapper} from 'facade/collection';
import {reflector} from 'reflection/reflection';
import {isPresent} from 'facade/lang';
import {getIntParameter, bindAction} from 'e2e_test_lib/benchmark_util';
import {ListWrapper, MapWrapper} from 'facade/src/collection';
import {reflector} from 'reflection/src/reflection';
import {isPresent} from 'facade/src/lang';
import {getIntParameter, bindAction} from 'e2e_test_lib/src/benchmark_util';
import {
Lexer,

View File

@ -1,19 +1,19 @@
import {DOM, document} from 'facade/dom';
import {isBlank, Type} from 'facade/lang';
import {MapWrapper} from 'facade/collection';
import {DirectiveMetadata} from 'core/compiler/directive_metadata';
import {DOM, document} from 'facade/src/dom';
import {isBlank, Type} from 'facade/src/lang';
import {MapWrapper} from 'facade/src/collection';
import {DirectiveMetadata} from 'core/src/compiler/directive_metadata';
import {Parser, Lexer, ProtoRecordRange, dynamicChangeDetection} from 'change_detection/change_detection';
import {Compiler, CompilerCache} from 'core/compiler/compiler';
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';
import {Compiler, CompilerCache} from 'core/src/compiler/compiler';
import {DirectiveMetadataReader} from 'core/src/compiler/directive_metadata_reader';
import {Component} from 'core/annotations/annotations';
import {Decorator} from 'core/annotations/annotations';
import {TemplateConfig} from 'core/annotations/template_config';
import {Component} from 'core/src/annotations/annotations';
import {Decorator} from 'core/src/annotations/annotations';
import {TemplateConfig} from 'core/src/annotations/template_config';
import {reflector} from 'reflection/reflection';
import {getIntParameter, bindAction} from 'e2e_test_lib/benchmark_util';
import {reflector} from 'reflection/src/reflection';
import {getIntParameter, bindAction} from 'e2e_test_lib/src/benchmark_util';
function setupReflector() {
reflector.registerType(BenchmarkComponent, {

View File

@ -1,8 +1,8 @@
import {SelectorMatcher} from "core/compiler/selector";
import {CssSelector} from "core/compiler/selector";
import {StringWrapper, Math} from 'facade/lang';
import {ListWrapper} from 'facade/collection';
import {getIntParameter, bindAction} from 'e2e_test_lib/benchmark_util';
import {SelectorMatcher} from "core/src/compiler/selector";
import {CssSelector} from "core/src/compiler/selector";
import {StringWrapper, Math} from 'facade/src/lang';
import {ListWrapper} from 'facade/src/collection';
import {getIntParameter, bindAction} from 'e2e_test_lib/src/benchmark_util';
export function main() {
var count = getIntParameter('selectors');

View File

@ -1,6 +1,6 @@
import {Injector, Key} from "di/di";
import {reflector} from 'reflection/reflection';
import {getIntParameter, bindAction} from 'e2e_test_lib/benchmark_util';
import {reflector} from 'reflection/src/reflection';
import {getIntParameter, bindAction} from 'e2e_test_lib/src/benchmark_util';
var count = 0;

View File

@ -1,7 +1,7 @@
import {reflector} from 'reflection/reflection';
import {reflector} from 'reflection/src/reflection';
import {Injector} from 'di/di';
import {ProtoElementInjector} from 'core/compiler/element_injector';
import {getIntParameter, bindAction} from 'e2e_test_lib/benchmark_util';
import {ProtoElementInjector} from 'core/src/compiler/element_injector';
import {getIntParameter, bindAction} from 'e2e_test_lib/src/benchmark_util';
var count = 0;

View File

@ -3,15 +3,15 @@ import {Parser, Lexer, ChangeDetector, ChangeDetection, jitChangeDetection}
import {bootstrap, Component, Template, TemplateConfig, ViewPort, Compiler} from 'angular/angular';
import {CompilerCache} from 'core/compiler/compiler';
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';
import {TemplateLoader} from 'core/compiler/template_loader';
import {LifeCycle} from 'core/life_cycle/life_cycle';
import {CompilerCache} from 'core/src/compiler/compiler';
import {DirectiveMetadataReader} from 'core/src/compiler/directive_metadata_reader';
import {TemplateLoader} from 'core/src/compiler/template_loader';
import {LifeCycle} from 'core/src/life_cycle/life_cycle';
import {reflector} from 'reflection/reflection';
import {DOM, document, window, Element, gc} from 'facade/dom';
import {isPresent} from 'facade/lang';
import {getIntParameter, bindAction} from 'e2e_test_lib/benchmark_util';
import {reflector} from 'reflection/src/reflection';
import {DOM, document, window, Element, gc} from 'facade/src/dom';
import {isPresent} from 'facade/src/lang';
import {getIntParameter, bindAction} from 'e2e_test_lib/src/benchmark_util';
function setupReflector() {
// TODO: Put the general calls to reflector.register... in a shared file

View File

@ -2,7 +2,7 @@ var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng1.x compiler benchmark', function () {
var URL = 'benchmarks_external/web/compiler/compiler_benchmark.html';
var URL = 'benchmarks_external/src/compiler/compiler_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng1.x compiler benchmark', function () {
var URL = 'benchmarks_external/web/compiler/compiler_benchmark.html';
var URL = 'benchmarks_external/src/compiler/compiler_benchmark.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -1,7 +1,7 @@
var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng1.x largetable benchmark', function () {
var URL = 'benchmarks_external/web/largetable/largetable_benchmark.html';
var URL = 'benchmarks_external/src/largetable/largetable_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -1,7 +1,7 @@
var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng1.x largetable benchmark', function () {
var URL = 'benchmarks_external/web/largetable/largetable_benchmark.html';
var URL = 'benchmarks_external/src/largetable/largetable_benchmark.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng-dart1.x naive infinite scroll benchmark', function () {
var URL = 'benchmarks_external/web/naive_infinite_scroll/index.html';
var URL = 'benchmarks_external/src/naive_infinite_scroll/index.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng-dart1.x naive infinite scroll benchmark', function () {
var URL = 'benchmarks_external/web/naive_infinite_scroll/index.html';
var URL = 'benchmarks_external/src/naive_infinite_scroll/index.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var perfUtil = require('../../e2e_test_lib/e2e_test/perf_util');
describe('ng1.x tree benchmark', function () {
var URL = 'benchmarks_external/web/tree/tree_benchmark.html';
var URL = 'benchmarks_external/src/tree/tree_benchmark.html';
afterEach(perfUtil.verifyNoBrowserErrors);

View File

@ -2,7 +2,7 @@ var testUtil = require('../../e2e_test_lib/e2e_test/test_util');
describe('ng1.x tree benchmark', function () {
var URL = 'benchmarks_external/web/tree/tree_benchmark.html';
var URL = 'benchmarks_external/src/tree/tree_benchmark.html';
afterEach(testUtil.verifyNoBrowserErrors);

View File

@ -10,5 +10,5 @@ dependencies:
transformers:
- angular:
html_files:
- web/naive_infinite_scroll/scroll_area.html
- web/naive_infinite_scroll/scroll_item.html
- web/src/naive_infinite_scroll/scroll_area.html
- web/src/naive_infinite_scroll/scroll_item.html

View File

@ -4,7 +4,7 @@ library compiler_benchmark_ng10;
import 'package:angular/angular.dart';
import 'package:angular/application_factory.dart';
import 'dart:html';
import 'package:e2e_test_lib/benchmark_util.dart';
import 'package:e2e_test_lib/src/benchmark_util.dart';
main() {

View File

@ -1,5 +1,5 @@
// compiler benchmark in AngularJS 1.x
import {getIntParameter, bindAction} from 'e2e_test_lib/benchmark_util';
import {getIntParameter, bindAction} from 'e2e_test_lib/src/benchmark_util';
export function main() {
var ngEl = document.createElement('div');

View File

@ -1,4 +1,4 @@
import {getIntParameter, getStringParameter, bindAction} from 'e2e_test_lib/benchmark_util';
import {getIntParameter, getStringParameter, bindAction} from 'e2e_test_lib/src/benchmark_util';
var totalRows = getIntParameter('rows');
var totalColumns = getIntParameter('columns');

View File

@ -3,7 +3,7 @@ library scroll_app;
import 'dart:async';
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:e2e_test_lib/benchmark_util.dart';
import 'package:e2e_test_lib/src/benchmark_util.dart';
@Component(
selector: 'scroll-app',

View File

@ -4,7 +4,7 @@ library tree_benchmark_ng10;
import 'package:angular/angular.dart';
import 'package:angular/application_factory.dart';
import 'dart:html';
import 'package:e2e_test_lib/benchmark_util.dart';
import 'package:e2e_test_lib/src/benchmark_util.dart';
setup() {

View File

@ -1,5 +1,5 @@
// tree benchmark in AngularJS 1.x
import {getIntParameter, bindAction} from 'e2e_test_lib/benchmark_util';
import {getIntParameter, bindAction} from 'e2e_test_lib/src/benchmark_util';
export function main() {
angular.bootstrap(document.querySelector('tree'), ['app']);

View File

@ -1,14 +1,14 @@
export {AST} from './parser/ast';
export {Lexer} from './parser/lexer';
export {Parser} from './parser/parser';
export {ContextWithVariableBindings} from './parser/context_with_variable_bindings';
export {AST} from './src/parser/ast';
export {Lexer} from './src/parser/lexer';
export {Parser} from './src/parser/parser';
export {ContextWithVariableBindings} from './src/parser/context_with_variable_bindings';
export {ExpressionChangedAfterItHasBeenChecked, ChangeDetectionError} from './exceptions';
export {ChangeRecord, ChangeDispatcher, ChangeDetector} from './interfaces';
export {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector} from './proto_change_detector';
export {DynamicChangeDetector} from './dynamic_change_detector';
export {ExpressionChangedAfterItHasBeenChecked, ChangeDetectionError} from './src/exceptions';
export {ChangeRecord, ChangeDispatcher, ChangeDetector} from './src/interfaces';
export {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector} from './src/proto_change_detector';
export {DynamicChangeDetector} from './src/dynamic_change_detector';
import {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector} from './proto_change_detector';
import {ProtoChangeDetector, DynamicProtoChangeDetector, JitProtoChangeDetector} from './src/proto_change_detector';
export class ChangeDetection {
createProtoChangeDetector(name:string){}

View File

@ -1,4 +1,4 @@
import {List, ListWrapper} from 'facade/collection';
import {List, ListWrapper} from 'facade/src/collection';
import {ChangeDetector} from './interfaces';
export class AbstractChangeDetector extends ChangeDetector {

View File

@ -3,7 +3,7 @@ import {
iterateListLike,
ListWrapper,
MapWrapper
} from 'facade/collection';
} from 'facade/src/collection';
import {
int,
@ -12,7 +12,7 @@ import {
stringify,
getMapKey,
looseIdentical,
} from 'facade/lang';
} from 'facade/src/lang';
export class ArrayChanges {
_collection;

View File

@ -1,5 +1,5 @@
import {isPresent, isBlank, BaseException, Type} from 'facade/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/collection';
import {isPresent, isBlank, BaseException, Type} from 'facade/src/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/src/collection';
import {ContextWithVariableBindings} from './parser/context_with_variable_bindings';
import {AbstractChangeDetector} from './abstract_change_detector';
@ -24,21 +24,21 @@ import {
* The code generator takes a list of proto records and creates a function/class
* that "emulates" what the developer would write by hand to implement the same
* kind of behaviour.
*
*
* For example: An expression `address.city` will result in the following class:
*
*
* var ChangeDetector0 = function ChangeDetector0(dispatcher, formatters, protos) {
* AbstractChangeDetector.call(this);
* this.dispatcher = dispatcher;
* this.formatters = formatters;
* this.protos = protos;
*
*
* this.context = null;
* this.address0 = null;
* this.city1 = null;
* }
* ChangeDetector0.prototype = Object.create(AbstractChangeDetector.prototype);
*
*
* ChangeDetector0.prototype.detectChangesInRecords = function(throwOnChange) {
* var address0;
* var city1;
@ -46,47 +46,47 @@ import {
* var changes = null;
* var temp;
* var context = this.context;
*
*
* temp = ChangeDetectionUtil.findContext("address", context);
* if (temp instanceof ContextWithVariableBindings) {
* address0 = temp.get('address');
* } else {
* address0 = temp.address;
* }
*
*
* if (address0 !== this.address0) {
* this.address0 = address0;
* }
*
*
* city1 = address0.city;
* if (city1 !== this.city1) {
* changes = ChangeDetectionUtil.addRecord(changes,
* ChangeDetectionUtil.simpleChangeRecord(this.protos[1].bindingMemento, this.city1, city1));
* this.city1 = city1;
* }
*
*
* if (changes.length > 0) {
* if(throwOnChange) ChangeDetectionUtil.throwOnChange(this.protos[1], changes[0]);
* this.dispatcher.onRecordChange('address.city', changes);
* changes = null;
* }
* }
*
*
*
*
* ChangeDetector0.prototype.setContext = function(context) {
* this.context = context;
* }
*
*
* return ChangeDetector0;
*
*
*
*
* The only thing the generated class depends on is the super class AbstractChangeDetector.
*
* The implementation comprises two parts:
* * ChangeDetectorJITGenerator has the logic of how everything fits together.
* * template functions (e.g., constructorTemplate) define what code is generated.
*/
var ABSTRACT_CHANGE_DETECTOR = "AbstractChangeDetector";
var UTIL = "ChangeDetectionUtil";
var DISPATCHER_ACCESSOR = "this.dispatcher";
@ -382,7 +382,7 @@ export class ChangeDetectorJITGenerator {
res += this.genLiteral(r.fixedArgs[r.args.length]);
return res;
}
genLiteral(value):string {
return JSON.stringify(value);
}

View File

@ -1,5 +1,5 @@
import {isPresent, isBlank, BaseException, Type} from 'facade/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/collection';
import {isPresent, isBlank, BaseException, Type} from 'facade/src/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/src/collection';
import {ContextWithVariableBindings} from './parser/context_with_variable_bindings';
import {ArrayChanges} from './array_changes';
import {KeyValueChanges} from './keyvalue_changes';

View File

@ -1,5 +1,5 @@
import {isPresent} from 'facade/lang';
import {List, ListWrapper, Map, MapWrapper} from 'facade/collection';
import {isPresent} from 'facade/src/lang';
import {List, ListWrapper, Map, MapWrapper} from 'facade/src/collection';
import {RECORD_TYPE_SELF, ProtoRecord} from './proto_change_detector';
/**

View File

@ -1,5 +1,5 @@
import {isPresent, isBlank, BaseException, FunctionWrapper} from 'facade/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/collection';
import {isPresent, isBlank, BaseException, FunctionWrapper} from 'facade/src/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/src/collection';
import {ContextWithVariableBindings} from './parser/context_with_variable_bindings';
import {AbstractChangeDetector} from './abstract_change_detector';

View File

@ -1,4 +1,4 @@
import {List} from 'facade/collection';
import {List} from 'facade/src/collection';
export class ChangeRecord {
bindingMemento:any;

View File

@ -1,6 +1,6 @@
import {ListWrapper, MapWrapper, StringMapWrapper} from 'facade/collection';
import {ListWrapper, MapWrapper, StringMapWrapper} from 'facade/src/collection';
import {stringify, looseIdentical, isJsObject} from 'facade/lang';
import {stringify, looseIdentical, isJsObject} from 'facade/src/lang';
export class KeyValueChanges {
_records:Map;

View File

@ -1,5 +1,5 @@
import {FIELD, autoConvertAdd, isBlank, isPresent, FunctionWrapper, BaseException} from "facade/lang";
import {List, Map, ListWrapper, StringMapWrapper} from "facade/collection";
import {FIELD, autoConvertAdd, isBlank, isPresent, FunctionWrapper, BaseException} from "facade/src/lang";
import {List, Map, ListWrapper, StringMapWrapper} from "facade/src/collection";
import {ContextWithVariableBindings} from "./context_with_variable_bindings";
export class AST {

View File

@ -1,5 +1,5 @@
import {MapWrapper} from 'facade/collection';
import {BaseException} from 'facade/lang';
import {MapWrapper} from 'facade/src/collection';
import {BaseException} from 'facade/src/lang';
export class ContextWithVariableBindings {
parent:any;

View File

@ -1,5 +1,5 @@
import {List, ListWrapper, SetWrapper} from "facade/collection";
import {int, FIELD, NumberWrapper, StringJoiner, StringWrapper} from "facade/lang";
import {List, ListWrapper, SetWrapper} from "facade/src/collection";
import {int, FIELD, NumberWrapper, StringJoiner, StringWrapper} from "facade/src/lang";
export const TOKEN_TYPE_CHARACTER = 1;
export const TOKEN_TYPE_IDENTIFIER = 2;

View File

@ -1,8 +1,8 @@
import {FIELD, int, isBlank, isPresent, BaseException, StringWrapper, RegExpWrapper} from 'facade/lang';
import {ListWrapper, List} from 'facade/collection';
import {FIELD, int, isBlank, isPresent, BaseException, StringWrapper, RegExpWrapper} from 'facade/src/lang';
import {ListWrapper, List} from 'facade/src/collection';
import {Lexer, EOF, Token, $PERIOD, $COLON, $SEMICOLON, $LBRACKET, $RBRACKET,
$COMMA, $LBRACE, $RBRACE, $LPAREN, $RPAREN} from './lexer';
import {reflector, Reflector} from 'reflection/reflection';
import {reflector, Reflector} from 'reflection/src/reflection';
import {
AST,
EmptyExpr,

View File

@ -1,5 +1,5 @@
import {isPresent, isBlank, BaseException, Type, isString} from 'facade/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/collection';
import {isPresent, isBlank, BaseException, Type, isString} from 'facade/src/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/src/collection';
import {
AccessMember,

View File

@ -1,8 +1,8 @@
import {describe, it, iit, xit, expect, beforeEach, afterEach} from 'test_lib/test_lib';
import {ArrayChanges} from 'change_detection/array_changes';
import {ArrayChanges} from 'change_detection/src/array_changes';
import {NumberWrapper} from 'facade/lang';
import {ListWrapper, MapWrapper} from 'facade/collection';
import {NumberWrapper} from 'facade/src/lang';
import {ListWrapper, MapWrapper} from 'facade/src/collection';
import {TestIterable} from './iterable';
import {arrayChangesAsString} from './util';

View File

@ -1,18 +1,18 @@
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach, IS_DARTIUM} from 'test_lib/test_lib';
import {isPresent, isBlank, isJsObject, BaseException, FunctionWrapper} from 'facade/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/collection';
import {isPresent, isBlank, isJsObject, BaseException, FunctionWrapper} from 'facade/src/lang';
import {List, ListWrapper, MapWrapper, StringMapWrapper} from 'facade/src/collection';
import {Parser} from 'change_detection/parser/parser';
import {Lexer} from 'change_detection/parser/lexer';
import {reflector} from 'reflection/reflection';
import {Parser} from 'change_detection/src/parser/parser';
import {Lexer} from 'change_detection/src/parser/lexer';
import {reflector} from 'reflection/src/reflection';
import {arrayChangesAsString, kvChangesAsString} from './util';
import {ChangeDispatcher, DynamicChangeDetector, ChangeDetectionError, ContextWithVariableBindings}
from 'change_detection/change_detection';
import {JitProtoChangeDetector, DynamicProtoChangeDetector} from 'change_detection/proto_change_detector';
import {JitProtoChangeDetector, DynamicProtoChangeDetector} from 'change_detection/src/proto_change_detector';
export function main() {

View File

@ -1,7 +1,7 @@
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach} from 'test_lib/test_lib';
import {coalesce} from 'change_detection/coalesce';
import {RECORD_TYPE_SELF, ProtoRecord} from 'change_detection/proto_change_detector';
import {coalesce} from 'change_detection/src/coalesce';
import {RECORD_TYPE_SELF, ProtoRecord} from 'change_detection/src/proto_change_detector';
export function main() {
function r(funcOrValue, args, contextIndex, selfIndex, lastInBinding = false) {

View File

@ -1,7 +1,7 @@
import {describe, it, iit, xit, expect, beforeEach, afterEach} from 'test_lib/test_lib';
import {KeyValueChanges} from 'change_detection/keyvalue_changes';
import {NumberWrapper, isJsObject} from 'facade/lang';
import {MapWrapper} from 'facade/collection';
import {KeyValueChanges} from 'change_detection/src/keyvalue_changes';
import {NumberWrapper, isJsObject} from 'facade/src/lang';
import {MapWrapper} from 'facade/src/collection';
import {kvChangesAsString} from './util';
// todo(vicb): Update the code & tests for object equality

View File

@ -1,9 +1,9 @@
import {ddescribe, describe, it, xit, iit, expect, beforeEach} from 'test_lib/test_lib';
import {ContextWithVariableBindings} from 'change_detection/parser/context_with_variable_bindings';
import {ContextWithVariableBindings} from 'change_detection/src/parser/context_with_variable_bindings';
import {BaseException, isBlank, isPresent} from 'facade/lang';
import {MapWrapper, ListWrapper} from 'facade/collection';
import {BaseException, isBlank, isPresent} from 'facade/src/lang';
import {MapWrapper, ListWrapper} from 'facade/src/collection';
export function main() {
describe('ContextWithVariableBindings', () => {

View File

@ -1,9 +1,9 @@
import {describe, it, expect} from 'test_lib/test_lib';
import {Lexer, Token} from 'change_detection/parser/lexer';
import {Lexer, Token} from 'change_detection/src/parser/lexer';
import {List, ListWrapper} from "facade/collection";
import {StringWrapper, int} from "facade/lang";
import {List, ListWrapper} from "facade/src/collection";
import {StringWrapper, int} from "facade/src/lang";
function lex(text:string):List {
return new Lexer().tokenize(text);

View File

@ -1,11 +1,11 @@
import {ddescribe, describe, it, xit, iit, expect, beforeEach} from 'test_lib/test_lib';
import {BaseException, isBlank, isPresent} from 'facade/lang';
import {reflector} from 'reflection/reflection';
import {MapWrapper, ListWrapper} from 'facade/collection';
import {Parser} from 'change_detection/parser/parser';
import {Lexer} from 'change_detection/parser/lexer';
import {ContextWithVariableBindings} from 'change_detection/parser/context_with_variable_bindings';
import {Formatter, LiteralPrimitive} from 'change_detection/parser/ast';
import {BaseException, isBlank, isPresent} from 'facade/src/lang';
import {reflector} from 'reflection/src/reflection';
import {MapWrapper, ListWrapper} from 'facade/src/collection';
import {Parser} from 'change_detection/src/parser/parser';
import {Lexer} from 'change_detection/src/parser/lexer';
import {ContextWithVariableBindings} from 'change_detection/src/parser/context_with_variable_bindings';
import {Formatter, LiteralPrimitive} from 'change_detection/src/parser/ast';
class TestData {
a;

View File

@ -1,4 +1,4 @@
import {isBlank} from 'facade/lang';
import {isBlank} from 'facade/src/lang';
export function arrayChangesAsString({collection, previous, additions, moves, removals}) {
if (isBlank(collection)) collection = [];

12
modules/core/core.js Normal file
View File

@ -0,0 +1,12 @@
export * from './src/annotations/annotations';
export * from './src/compiler/interfaces';
export * from './src/annotations/template_config';
export * from './src/application';
export * from './src/compiler/compiler';
export * from './src/compiler/template_loader';
export * from './src/compiler/view';
export * from './src/compiler/viewport';
export * from './src/dom/element';

View File

@ -1,5 +1,5 @@
import {ABSTRACT, CONST, normalizeBlank} from 'facade/lang';
import {List} from 'facade/collection';
import {ABSTRACT, CONST, normalizeBlank} from 'facade/src/lang';
import {List} from 'facade/src/collection';
import {TemplateConfig} from './template_config';
import {ShadowDomStrategy} from '../compiler/shadow_dom';

View File

@ -1,4 +1,4 @@
import {CONST} from 'facade/lang';
import {CONST} from 'facade/src/lang';
import {DependencyAnnotation} from 'di/di';
/**

View File

@ -1,5 +1,5 @@
import {ABSTRACT, CONST, Type} from 'facade/lang';
import {List} from 'facade/collection';
import {ABSTRACT, CONST, Type} from 'facade/src/lang';
import {List} from 'facade/src/collection';
export class TemplateConfig {
url:any; //string;

View File

@ -1,4 +1,4 @@
import {CONST} from 'facade/lang';
import {CONST} from 'facade/src/lang';
import {DependencyAnnotation} from 'di/di';
/**

View File

@ -1,17 +1,17 @@
import {Injector, bind, OpaqueToken} from 'di/di';
import {Type, FIELD, isBlank, isPresent, BaseException, assertionsEnabled, print} from 'facade/lang';
import {DOM, Element} from 'facade/dom';
import {Type, FIELD, isBlank, isPresent, BaseException, assertionsEnabled, print} from 'facade/src/lang';
import {DOM, Element} from 'facade/src/dom';
import {Compiler, CompilerCache} from './compiler/compiler';
import {ProtoView} from './compiler/view';
import {Reflector, reflector} from 'reflection/reflection';
import {Reflector, reflector} from 'reflection/src/reflection';
import {Parser, Lexer, ChangeDetection, dynamicChangeDetection, jitChangeDetection} from 'change_detection/change_detection';
import {TemplateLoader} from './compiler/template_loader';
import {DirectiveMetadataReader} from './compiler/directive_metadata_reader';
import {DirectiveMetadata} from './compiler/directive_metadata';
import {List, ListWrapper} from 'facade/collection';
import {PromiseWrapper} from 'facade/async';
import {VmTurnZone} from 'core/zone/vm_turn_zone';
import {LifeCycle} from 'core/life_cycle/life_cycle';
import {List, ListWrapper} from 'facade/src/collection';
import {PromiseWrapper} from 'facade/src/async';
import {VmTurnZone} from 'core/src/zone/vm_turn_zone';
import {LifeCycle} from 'core/src/life_cycle/life_cycle';
var _rootInjector: Injector;

View File

@ -1,7 +1,7 @@
import {Type, FIELD, isBlank, isPresent, BaseException, stringify} from 'facade/lang';
import {Promise, PromiseWrapper} from 'facade/async';
import {List, ListWrapper, MapWrapper} from 'facade/collection';
import {DOM, Element} from 'facade/dom';
import {Type, FIELD, isBlank, isPresent, BaseException, stringify} from 'facade/src/lang';
import {Promise, PromiseWrapper} from 'facade/src/async';
import {List, ListWrapper, MapWrapper} from 'facade/src/collection';
import {DOM, Element} from 'facade/src/dom';
import {ChangeDetection, Parser} from 'change_detection/change_detection';

View File

@ -1,6 +1,6 @@
import {Type} from 'facade/lang';
import {Type} from 'facade/src/lang';
import {Directive} from '../annotations/annotations'
import {List} from 'facade/collection'
import {List} from 'facade/src/collection'
import {ShadowDomStrategy} from './shadow_dom';
/**

View File

@ -1,8 +1,8 @@
import {Type, isPresent, BaseException, stringify} from 'facade/lang';
import {List, ListWrapper} from 'facade/collection';
import {Type, isPresent, BaseException, stringify} from 'facade/src/lang';
import {List, ListWrapper} from 'facade/src/collection';
import {Directive, Component} from '../annotations/annotations';
import {DirectiveMetadata} from './directive_metadata';
import {reflector} from 'reflection/reflection';
import {reflector} from 'reflection/src/reflection';
import {ShadowDom, ShadowDomStrategy, ShadowDomNative} from './shadow_dom';
export class DirectiveMetadataReader {

View File

@ -1,8 +1,8 @@
import {ProtoElementInjector} from './element_injector';
import {FIELD} from 'facade/lang';
import {MapWrapper} from 'facade/collection';
import {FIELD} from 'facade/src/lang';
import {MapWrapper} from 'facade/src/collection';
import {DirectiveMetadata} from './directive_metadata';
import {List, Map} from 'facade/collection';
import {List, Map} from 'facade/src/collection';
import {ProtoView} from './view';
export class ElementBinder {

View File

@ -1,15 +1,15 @@
import {FIELD, isPresent, isBlank, Type, int, BaseException} from 'facade/lang';
import {Math} from 'facade/math';
import {List, ListWrapper, MapWrapper} from 'facade/collection';
import {FIELD, isPresent, isBlank, Type, int, BaseException} from 'facade/src/lang';
import {Math} from 'facade/src/math';
import {List, ListWrapper, MapWrapper} from 'facade/src/collection';
import {Injector, Key, Dependency, bind, Binding, NoProviderError, ProviderError, CyclicDependencyError} from 'di/di';
import {Parent, Ancestor} from 'core/annotations/visibility';
import {EventEmitter} from 'core/annotations/events';
import {onDestroy} from 'core/annotations/annotations';
import {View, ProtoView} from 'core/compiler/view';
import {LightDom, SourceLightDom, DestinationLightDom} from 'core/compiler/shadow_dom_emulation/light_dom';
import {ViewPort} from 'core/compiler/viewport';
import {NgElement} from 'core/dom/element';
import {Directive} from 'core/annotations/annotations'
import {Parent, Ancestor} from 'core/src/annotations/visibility';
import {EventEmitter} from 'core/src/annotations/events';
import {onDestroy} from 'core/src/annotations/annotations';
import {View, ProtoView} from 'core/src/compiler/view';
import {LightDom, SourceLightDom, DestinationLightDom} from 'core/src/compiler/shadow_dom_emulation/light_dom';
import {ViewPort} from 'core/src/compiler/viewport';
import {NgElement} from 'core/src/dom/element';
import {Directive} from 'core/src/annotations/annotations'
var _MAX_DIRECTIVE_CONSTRUCTION_COUNTER = 10;

View File

@ -1,6 +1,6 @@
import {isBlank} from 'facade/lang';
import {List, ListWrapper} from 'facade/collection';
import {DOM, Element} from 'facade/dom';
import {isBlank} from 'facade/src/lang';
import {List, ListWrapper} from 'facade/src/collection';
import {DOM, Element} from 'facade/src/dom';
import {CompileElement} from './compile_element';
import {CompileStep} from './compile_step';

View File

@ -1,6 +1,6 @@
import {List, Map, ListWrapper, MapWrapper} from 'facade/collection';
import {Element, DOM} from 'facade/dom';
import {int, isBlank, isPresent, Type} from 'facade/lang';
import {List, Map, ListWrapper, MapWrapper} from 'facade/src/collection';
import {Element, DOM} from 'facade/src/dom';
import {int, isBlank, isPresent, Type} from 'facade/src/lang';
import {DirectiveMetadata} from '../directive_metadata';
import {Decorator} from '../../annotations/annotations';
import {Component} from '../../annotations/annotations';

View File

@ -1,6 +1,6 @@
import {isPresent} from 'facade/lang';
import {List, ListWrapper} from 'facade/collection';
import {Element, Node, DOM} from 'facade/dom';
import {isPresent} from 'facade/src/lang';
import {List, ListWrapper} from 'facade/src/collection';
import {Element, Node, DOM} from 'facade/src/dom';
import {CompileElement} from './compile_element';
import {CompileControl} from './compile_control';
import {CompileStep} from './compile_step';

View File

@ -1,5 +1,5 @@
import {ChangeDetection, Parser} from 'change_detection/change_detection';
import {List} from 'facade/collection';
import {List} from 'facade/src/collection';
import {PropertyBindingParser} from './property_binding_parser';
import {TextInterpolationParser} from './text_interpolation_parser';
@ -9,8 +9,8 @@ import {ElementBindingMarker} from './element_binding_marker';
import {ProtoViewBuilder} from './proto_view_builder';
import {ProtoElementInjectorBuilder} from './proto_element_injector_builder';
import {ElementBinderBuilder} from './element_binder_builder';
import {DirectiveMetadata} from 'core/compiler/directive_metadata';
import {stringify} from 'facade/lang';
import {DirectiveMetadata} from 'core/src/compiler/directive_metadata';
import {stringify} from 'facade/src/lang';
/**
* Default steps used for compiling a template.

View File

@ -1,6 +1,6 @@
import {isPresent, BaseException} from 'facade/lang';
import {List, MapWrapper} from 'facade/collection';
import {TemplateElement} from 'facade/dom';
import {isPresent, BaseException} from 'facade/src/lang';
import {List, MapWrapper} from 'facade/src/collection';
import {TemplateElement} from 'facade/src/dom';
import {SelectorMatcher} from '../selector';
import {CssSelector} from '../selector';

View File

@ -1,8 +1,8 @@
import {int, isPresent, isBlank, Type, BaseException, stringify} from 'facade/lang';
import {Element, DOM} from 'facade/dom';
import {ListWrapper, List, MapWrapper, StringMapWrapper} from 'facade/collection';
import {int, isPresent, isBlank, Type, BaseException, stringify} from 'facade/src/lang';
import {Element, DOM} from 'facade/src/dom';
import {ListWrapper, List, MapWrapper, StringMapWrapper} from 'facade/src/collection';
import {reflector} from 'reflection/reflection';
import {reflector} from 'reflection/src/reflection';
import {Parser, ProtoChangeDetector} from 'change_detection/change_detection';

View File

@ -1,6 +1,6 @@
import {isPresent} from 'facade/lang';
import {MapWrapper} from 'facade/collection';
import {DOM} from 'facade/dom';
import {isPresent} from 'facade/src/lang';
import {MapWrapper} from 'facade/src/collection';
import {DOM} from 'facade/src/dom';
import {CompileStep} from './compile_step';
import {CompileElement} from './compile_element';

View File

@ -1,6 +1,6 @@
import {isPresent, isBlank, RegExpWrapper, BaseException} from 'facade/lang';
import {MapWrapper} from 'facade/collection';
import {TemplateElement} from 'facade/dom';
import {isPresent, isBlank, RegExpWrapper, BaseException} from 'facade/src/lang';
import {MapWrapper} from 'facade/src/collection';
import {TemplateElement} from 'facade/src/dom';
import {Parser, AST, ExpressionWithSource} from 'change_detection/change_detection';

View File

@ -1,5 +1,5 @@
import {isPresent, isBlank} from 'facade/lang';
import {ListWrapper} from 'facade/collection';
import {isPresent, isBlank} from 'facade/src/lang';
import {ListWrapper} from 'facade/src/collection';
import {Key} from 'di/di';
import {ProtoElementInjector, ComponentKeyMetaData, DirectiveBinding} from '../element_injector';

View File

@ -1,5 +1,5 @@
import {isPresent, BaseException} from 'facade/lang';
import {ListWrapper, MapWrapper} from 'facade/collection';
import {isPresent, BaseException} from 'facade/src/lang';
import {ListWrapper, MapWrapper} from 'facade/src/collection';
import {ProtoView} from '../view';
import {ChangeDetection} from 'change_detection/change_detection';

View File

@ -1,5 +1,5 @@
import {RegExpWrapper, StringWrapper, isPresent} from 'facade/lang';
import {Node, DOM} from 'facade/dom';
import {RegExpWrapper, StringWrapper, isPresent} from 'facade/src/lang';
import {Node, DOM} from 'facade/src/dom';
import {Parser} from 'change_detection/change_detection';

View File

@ -1,6 +1,6 @@
import {isBlank, isPresent} from 'facade/lang';
import {DOM, TemplateElement} from 'facade/dom';
import {MapWrapper, ListWrapper} from 'facade/collection';
import {isBlank, isPresent} from 'facade/src/lang';
import {DOM, TemplateElement} from 'facade/src/dom';
import {MapWrapper, ListWrapper} from 'facade/src/collection';
import {Parser} from 'change_detection/change_detection';

View File

@ -1,5 +1,5 @@
import {List, Map, ListWrapper, MapWrapper} from 'facade/collection';
import {isPresent, isBlank, RegExpWrapper, RegExpMatcherWrapper, StringWrapper} from 'facade/lang';
import {List, Map, ListWrapper, MapWrapper} from 'facade/src/collection';
import {isPresent, isBlank, RegExpWrapper, RegExpMatcherWrapper, StringWrapper} from 'facade/src/lang';
const _EMPTY_ATTR_VALUE = '';

View File

@ -1,10 +1,10 @@
import {Decorator} from '../../annotations/annotations';
import {SourceLightDom, DestinationLightDom, LightDom} from './light_dom';
import {Inject} from 'di/di';
import {Element, Node, DOM} from 'facade/dom';
import {isPresent} from 'facade/lang';
import {List, ListWrapper} from 'facade/collection';
import {NgElement} from 'core/dom/element';
import {Element, Node, DOM} from 'facade/src/dom';
import {isPresent} from 'facade/src/lang';
import {List, ListWrapper} from 'facade/src/collection';
import {NgElement} from 'core/src/dom/element';
var _scriptTemplate = DOM.createScriptTag('type', 'ng/content')

View File

@ -1,6 +1,6 @@
import {Element, Node, DOM} from 'facade/dom';
import {List, ListWrapper} from 'facade/collection';
import {isBlank, isPresent} from 'facade/lang';
import {Element, Node, DOM} from 'facade/src/dom';
import {List, ListWrapper} from 'facade/src/collection';
import {isBlank, isPresent} from 'facade/src/lang';
import {View} from '../view';
import {ElementInjector} from '../element_injector';

View File

@ -1,6 +1,6 @@
import {CONST} from 'facade/lang';
import {DOM, Element} from 'facade/dom';
import {List} from 'facade/collection';
import {CONST} from 'facade/src/lang';
import {DOM, Element} from 'facade/src/dom';
import {List} from 'facade/src/collection';
import {View} from './view';
import {Content} from './shadow_dom_emulation/content_tag';
import {LightDom} from './shadow_dom_emulation/light_dom';

View File

@ -1,5 +1,5 @@
import {Promise} from 'facade/async';
//import {Document} from 'facade/dom';
import {Promise} from 'facade/src/async';
//import {Document} from 'facade/src/dom';
/**
* Strategy to load component templates.

View File

@ -1,15 +1,15 @@
import {DOM, Element, Node, Text, DocumentFragment, TemplateElement} from 'facade/dom';
import {ListWrapper, MapWrapper, StringMapWrapper, List} from 'facade/collection';
import {DOM, Element, Node, Text, DocumentFragment, TemplateElement} from 'facade/src/dom';
import {ListWrapper, MapWrapper, StringMapWrapper, List} from 'facade/src/collection';
import {AST, ContextWithVariableBindings, ChangeDispatcher, ProtoChangeDetector, ChangeDetector, ChangeRecord}
from 'change_detection/change_detection';
import {ProtoElementInjector, ElementInjector, PreBuiltObjects} from './element_injector';
import {ElementBinder} from './element_binder';
import {DirectiveMetadata} from './directive_metadata';
import {SetterFn} from 'reflection/types';
import {FIELD, IMPLEMENTS, int, isPresent, isBlank, BaseException} from 'facade/lang';
import {SetterFn} from 'reflection/src/types';
import {FIELD, IMPLEMENTS, int, isPresent, isBlank, BaseException} from 'facade/src/lang';
import {Injector} from 'di/di';
import {NgElement} from 'core/dom/element';
import {NgElement} from 'core/src/dom/element';
import {ViewPort} from './viewport';
import {OnChange} from './interfaces';
import {Content} from './shadow_dom_emulation/content_tag';

View File

@ -1,10 +1,10 @@
import {View, ProtoView} from './view';
import {DOM, Node, Element} from 'facade/dom';
import {ListWrapper, MapWrapper, List} from 'facade/collection';
import {BaseException} from 'facade/lang';
import {DOM, Node, Element} from 'facade/src/dom';
import {ListWrapper, MapWrapper, List} from 'facade/src/collection';
import {BaseException} from 'facade/src/lang';
import {Injector} from 'di/di';
import {ElementInjector} from 'core/compiler/element_injector';
import {isPresent, isBlank} from 'facade/lang';
import {ElementInjector} from 'core/src/compiler/element_injector';
import {isPresent, isBlank} from 'facade/src/lang';
export class ViewPort {
parentView: View;

View File

@ -1,12 +0,0 @@
export * from './annotations/annotations';
export * from './compiler/interfaces';
export * from './annotations/template_config';
export * from './application';
export * from './compiler/compiler';
export * from './compiler/template_loader';
export * from './compiler/view';
export * from './compiler/viewport';
export * from './dom/element';

View File

@ -1,5 +1,5 @@
import {DOM, Element} from 'facade/dom';
import {normalizeBlank} from 'facade/lang';
import {DOM, Element} from 'facade/src/dom';
import {normalizeBlank} from 'facade/src/lang';
export class NgElement {
domElement:Element;

View File

@ -1,7 +1,7 @@
import {FIELD, print} from 'facade/lang';
import {FIELD, print} from 'facade/src/lang';
import {ChangeDetector} from 'change_detection/change_detection';
import {VmTurnZone} from 'core/zone/vm_turn_zone';
import {ListWrapper} from 'facade/collection';
import {VmTurnZone} from 'core/src/zone/vm_turn_zone';
import {ListWrapper} from 'facade/src/collection';
export class LifeCycle {
_changeDetector:ChangeDetector;

View File

@ -1,5 +1,5 @@
import {List, ListWrapper, StringMapWrapper} from 'facade/collection';
import {normalizeBlank, isPresent} from 'facade/lang';
import {List, ListWrapper, StringMapWrapper} from 'facade/src/collection';
import {normalizeBlank, isPresent} from 'facade/src/lang';
export class VmTurnZone {
_outerZone;

View File

@ -1,12 +1,12 @@
import {describe, ddescribe, it, iit, xit, xdescribe, expect, beforeEach} from 'test_lib/test_lib';
import {bootstrap, appDocumentToken, appElementToken}
from 'core/application';
import {Component} from 'core/annotations/annotations';
import {DOM} from 'facade/dom';
import {ListWrapper} from 'facade/collection';
import {PromiseWrapper} from 'facade/async';
from 'core/src/application';
import {Component} from 'core/src/annotations/annotations';
import {DOM} from 'facade/src/dom';
import {ListWrapper} from 'facade/src/collection';
import {PromiseWrapper} from 'facade/src/async';
import {bind, Inject} from 'di/di';
import {TemplateConfig} from 'core/annotations/template_config';
import {TemplateConfig} from 'core/src/annotations/template_config';
@Component({
selector: 'hello-app',

View File

@ -1,16 +1,16 @@
import {describe, beforeEach, it, expect, ddescribe, iit, el} from 'test_lib/test_lib';
import {DOM} from 'facade/dom';
import {List} from 'facade/collection';
import {DOM} from 'facade/src/dom';
import {List} from 'facade/src/collection';
import {Compiler, CompilerCache} from 'core/compiler/compiler';
import {ProtoView} from 'core/compiler/view';
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';
import {TemplateLoader} from 'core/compiler/template_loader';
import {Component} from 'core/annotations/annotations';
import {TemplateConfig} from 'core/annotations/template_config';
import {CompileElement} from 'core/compiler/pipeline/compile_element';
import {CompileStep} from 'core/compiler/pipeline/compile_step'
import {CompileControl} from 'core/compiler/pipeline/compile_control';
import {Compiler, CompilerCache} from 'core/src/compiler/compiler';
import {ProtoView} from 'core/src/compiler/view';
import {DirectiveMetadataReader} from 'core/src/compiler/directive_metadata_reader';
import {TemplateLoader} from 'core/src/compiler/template_loader';
import {Component} from 'core/src/annotations/annotations';
import {TemplateConfig} from 'core/src/annotations/template_config';
import {CompileElement} from 'core/src/compiler/pipeline/compile_element';
import {CompileStep} from 'core/src/compiler/pipeline/compile_step'
import {CompileControl} from 'core/src/compiler/pipeline/compile_control';
import {Lexer, Parser, dynamicChangeDetection} from 'change_detection/change_detection';

View File

@ -1,10 +1,10 @@
import {ddescribe, describe, it, iit, expect, beforeEach} from 'test_lib/test_lib';
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';
import {Decorator, Component} from 'core/annotations/annotations';
import {TemplateConfig} from 'core/annotations/template_config';
import {DirectiveMetadata} from 'core/compiler/directive_metadata';
import {ShadowDomStrategy, ShadowDomNative} from 'core/compiler/shadow_dom';
import {CONST} from 'facade/lang';
import {DirectiveMetadataReader} from 'core/src/compiler/directive_metadata_reader';
import {Decorator, Component} from 'core/src/annotations/annotations';
import {TemplateConfig} from 'core/src/annotations/template_config';
import {DirectiveMetadata} from 'core/src/compiler/directive_metadata';
import {ShadowDomStrategy, ShadowDomNative} from 'core/src/compiler/shadow_dom';
import {CONST} from 'facade/src/lang';
class FakeShadowDomStrategy extends ShadowDomStrategy {

View File

@ -1,17 +1,17 @@
import {describe, ddescribe, it, iit, xit, xdescribe, expect, beforeEach, SpyObject} from 'test_lib/test_lib';
import {isBlank, isPresent, FIELD, IMPLEMENTS, proxy} from 'facade/lang';
import {ListWrapper, MapWrapper, List} from 'facade/collection';
import {ProtoElementInjector, PreBuiltObjects, DirectiveBinding} from 'core/compiler/element_injector';
import {Parent, Ancestor} from 'core/annotations/visibility';
import {EventEmitter} from 'core/annotations/events';
import {onDestroy} from 'core/annotations/annotations';
import {isBlank, isPresent, FIELD, IMPLEMENTS, proxy} from 'facade/src/lang';
import {ListWrapper, MapWrapper, List} from 'facade/src/collection';
import {ProtoElementInjector, PreBuiltObjects, DirectiveBinding} from 'core/src/compiler/element_injector';
import {Parent, Ancestor} from 'core/src/annotations/visibility';
import {EventEmitter} from 'core/src/annotations/events';
import {onDestroy} from 'core/src/annotations/annotations';
import {Injector, Inject, bind} from 'di/di';
import {View} from 'core/compiler/view';
import {View} from 'core/src/compiler/view';
import {ProtoRecordRange} from 'change_detection/change_detection';
import {ViewPort} from 'core/compiler/viewport';
import {NgElement} from 'core/dom/element';
import {LightDom, SourceLightDom, DestinationLightDom} from 'core/compiler/shadow_dom_emulation/light_dom';
import {Directive} from 'core/annotations/annotations';
import {ViewPort} from 'core/src/compiler/viewport';
import {NgElement} from 'core/src/dom/element';
import {LightDom, SourceLightDom, DestinationLightDom} from 'core/src/compiler/shadow_dom_emulation/light_dom';
import {Directive} from 'core/src/annotations/annotations';
@proxy
@IMPLEMENTS(View)

View File

@ -1,19 +1,19 @@
import {describe, xit, it, expect, beforeEach, ddescribe, iit, el} from 'test_lib/test_lib';
import {DOM} from 'facade/dom';
import {DOM} from 'facade/src/dom';
import {Injector} from 'di/di';
import {Lexer, Parser, ChangeDetector, dynamicChangeDetection} from 'change_detection/change_detection';
import {Compiler, CompilerCache} from 'core/compiler/compiler';
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';
import {ShadowDomEmulated} from 'core/compiler/shadow_dom';
import {Compiler, CompilerCache} from 'core/src/compiler/compiler';
import {DirectiveMetadataReader} from 'core/src/compiler/directive_metadata_reader';
import {ShadowDomEmulated} from 'core/src/compiler/shadow_dom';
import {Decorator, Component, Template} from 'core/annotations/annotations';
import {TemplateConfig} from 'core/annotations/template_config';
import {Decorator, Component, Template} from 'core/src/annotations/annotations';
import {TemplateConfig} from 'core/src/annotations/template_config';
import {ViewPort} from 'core/compiler/viewport';
import {MapWrapper} from 'facade/collection';
import {ViewPort} from 'core/src/compiler/viewport';
import {MapWrapper} from 'facade/src/collection';
export function main() {
describe('integration tests', function() {

View File

@ -1,17 +1,17 @@
import {describe, beforeEach, it, expect, iit, ddescribe, el} from 'test_lib/test_lib';
import {isPresent} from 'facade/lang';
import {ListWrapper, MapWrapper, StringMapWrapper} from 'facade/collection';
import {DirectiveParser} from 'core/compiler/pipeline/directive_parser';
import {CompilePipeline} from 'core/compiler/pipeline/compile_pipeline';
import {CompileStep} from 'core/compiler/pipeline/compile_step';
import {CompileElement} from 'core/compiler/pipeline/compile_element';
import {CompileControl} from 'core/compiler/pipeline/compile_control';
import {DOM} from 'facade/dom';
import {Component} from 'core/annotations/annotations';
import {Decorator} from 'core/annotations/annotations';
import {Template} from 'core/annotations/annotations';
import {TemplateConfig} from 'core/annotations/template_config';
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';
import {isPresent} from 'facade/src/lang';
import {ListWrapper, MapWrapper, StringMapWrapper} from 'facade/src/collection';
import {DirectiveParser} from 'core/src/compiler/pipeline/directive_parser';
import {CompilePipeline} from 'core/src/compiler/pipeline/compile_pipeline';
import {CompileStep} from 'core/src/compiler/pipeline/compile_step';
import {CompileElement} from 'core/src/compiler/pipeline/compile_element';
import {CompileControl} from 'core/src/compiler/pipeline/compile_control';
import {DOM} from 'facade/src/dom';
import {Component} from 'core/src/annotations/annotations';
import {Decorator} from 'core/src/annotations/annotations';
import {Template} from 'core/src/annotations/annotations';
import {TemplateConfig} from 'core/src/annotations/template_config';
import {DirectiveMetadataReader} from 'core/src/compiler/directive_metadata_reader';
import {Lexer, Parser} from 'change_detection/change_detection';
export function main() {

View File

@ -1,20 +1,20 @@
import {describe, beforeEach, it, expect, iit, ddescribe, el} from 'test_lib/test_lib';
import {isPresent} from 'facade/lang';
import {DOM} from 'facade/dom';
import {ListWrapper, MapWrapper} from 'facade/collection';
import {isPresent} from 'facade/src/lang';
import {DOM} from 'facade/src/dom';
import {ListWrapper, MapWrapper} from 'facade/src/collection';
import {ElementBinderBuilder} from 'core/compiler/pipeline/element_binder_builder';
import {CompilePipeline} from 'core/compiler/pipeline/compile_pipeline';
import {CompileElement} from 'core/compiler/pipeline/compile_element';
import {CompileStep} from 'core/compiler/pipeline/compile_step'
import {CompileControl} from 'core/compiler/pipeline/compile_control';
import {ElementBinderBuilder} from 'core/src/compiler/pipeline/element_binder_builder';
import {CompilePipeline} from 'core/src/compiler/pipeline/compile_pipeline';
import {CompileElement} from 'core/src/compiler/pipeline/compile_element';
import {CompileStep} from 'core/src/compiler/pipeline/compile_step'
import {CompileControl} from 'core/src/compiler/pipeline/compile_control';
import {Decorator} from 'core/annotations/annotations';
import {Template} from 'core/annotations/annotations';
import {Component} from 'core/annotations/annotations';
import {ProtoView, ElementPropertyMemento, DirectivePropertyMemento} from 'core/compiler/view';
import {ProtoElementInjector} from 'core/compiler/element_injector';
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';
import {Decorator} from 'core/src/annotations/annotations';
import {Template} from 'core/src/annotations/annotations';
import {Component} from 'core/src/annotations/annotations';
import {ProtoView, ElementPropertyMemento, DirectivePropertyMemento} from 'core/src/compiler/view';
import {ProtoElementInjector} from 'core/src/compiler/element_injector';
import {DirectiveMetadataReader} from 'core/src/compiler/directive_metadata_reader';
import {ChangeDetector, Lexer, Parser, DynamicProtoChangeDetector,
} from 'change_detection/change_detection';

View File

@ -1,15 +1,15 @@
import {describe, beforeEach, it, expect, iit, ddescribe, el} from 'test_lib/test_lib';
import {isPresent} from 'facade/lang';
import {DOM} from 'facade/dom';
import {MapWrapper} from 'facade/collection';
import {isPresent} from 'facade/src/lang';
import {DOM} from 'facade/src/dom';
import {MapWrapper} from 'facade/src/collection';
import {ElementBindingMarker} from 'core/compiler/pipeline/element_binding_marker';
import {CompilePipeline} from 'core/compiler/pipeline/compile_pipeline';
import {CompileElement} from 'core/compiler/pipeline/compile_element';
import {CompileStep} from 'core/compiler/pipeline/compile_step'
import {CompileControl} from 'core/compiler/pipeline/compile_control';
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';
import {Template, Decorator, Component} from 'core/annotations/annotations';
import {ElementBindingMarker} from 'core/src/compiler/pipeline/element_binding_marker';
import {CompilePipeline} from 'core/src/compiler/pipeline/compile_pipeline';
import {CompileElement} from 'core/src/compiler/pipeline/compile_element';
import {CompileStep} from 'core/src/compiler/pipeline/compile_step'
import {CompileControl} from 'core/src/compiler/pipeline/compile_control';
import {DirectiveMetadataReader} from 'core/src/compiler/directive_metadata_reader';
import {Template, Decorator, Component} from 'core/src/annotations/annotations';
export function main() {
describe('ElementBindingMarker', () => {

Some files were not shown because too many files have changed in this diff Show More