Skip to content

Commit 739f624

Browse files
committed
refactor(change_detection): add change_detection library file
1 parent f06433f commit 739f624

33 files changed

+49
-67
lines changed

modules/benchmarks/src/change_detection/change_detection_benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import {ListWrapper, MapWrapper} from 'facade/collection';
2-
import {Parser} from 'change_detection/parser/parser';
3-
import {Lexer} from 'change_detection/parser/lexer';
42
import {reflector} from 'reflection/reflection';
53
import {isPresent} from 'facade/lang';
64
import {document, DOM} from 'facade/dom';
75

86
import {
7+
Lexer,
8+
Parser,
99
ChangeDetector,
1010
ProtoRecordRange,
1111
ChangeDispatcher,
12-
} from 'change_detection/change_detector';
12+
} from 'change_detection/change_detection';
1313

1414

1515
var ITERATIONS = 500000;

modules/benchmarks/src/compiler/compiler_benchmark.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import {isBlank, Type} from 'facade/lang';
33
import {MapWrapper} from 'facade/collection';
44
import {DirectiveMetadata} from 'core/compiler/directive_metadata';
55

6-
import {Parser} from 'change_detection/parser/parser';
7-
import {Lexer} from 'change_detection/parser/lexer';
8-
import {ProtoRecordRange} from 'change_detection/record_range';
6+
import {Parser, Lexer, ProtoRecordRange} from 'change_detection/change_detection';
97

108
import {Compiler, CompilerCache} from 'core/compiler/compiler';
119
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';

modules/benchmarks/src/tree/tree_benchmark.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import {ChangeDetector} from 'change_detection/change_detector';
2-
import {Parser} from 'change_detection/parser/parser';
3-
import {Lexer} from 'change_detection/parser/lexer';
1+
import {Parser, Lexer, ChangeDetector} from 'change_detection/change_detection';
42

53
import {bootstrap, Component, Template, TemplateConfig, ViewPort, Compiler} from 'core/core';
64

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export {ChangeDetectionError, ChangeDetector} from './change_detector';
2+
export {AST, ASTWithSource} from './parser/ast';
3+
export {Lexer} from './parser/lexer';
4+
export {Parser} from './parser/parser';
5+
export {ProtoRecordRange, RecordRange, ChangeDispatcher} from './record_range';
6+
export {ProtoRecord, Record} from './record';
7+
export {ContextWithVariableBindings} from './parser/context_with_variable_bindings';

modules/change_detection/test/array_changes_spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import {describe, it, iit, xit, expect, beforeEach, afterEach} from 'test_lib/test_lib';
22
import {ArrayChanges} from 'change_detection/array_changes';
3+
34
import {NumberWrapper} from 'facade/lang';
45
import {ListWrapper, MapWrapper} from 'facade/collection';
6+
57
import {TestIterable} from './iterable';
68
import {arrayChangesAsString} from './util';
79

modules/change_detection/test/change_detector_spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import {ddescribe, describe, it, iit, xit, expect, beforeEach} from 'test_lib/te
22

33
import {isPresent, isBlank, isJsObject, BaseException} from 'facade/lang';
44
import {List, ListWrapper, MapWrapper} from 'facade/collection';
5-
import {ContextWithVariableBindings} from 'change_detection/parser/context_with_variable_bindings';
5+
66
import {Parser} from 'change_detection/parser/parser';
77
import {Lexer} from 'change_detection/parser/lexer';
8+
import {ContextWithVariableBindings} from 'change_detection/parser/context_with_variable_bindings';
89
import {arrayChangesAsString, kvChangesAsString} from './util';
910

1011
import {

modules/change_detection/test/parser/context_with_variable_bindings_spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import {ddescribe, describe, it, xit, iit, expect, beforeEach} from 'test_lib/test_lib';
2+
3+
import {ContextWithVariableBindings} from 'change_detection/parser/context_with_variable_bindings';
4+
25
import {BaseException, isBlank, isPresent} from 'facade/lang';
36
import {MapWrapper, ListWrapper} from 'facade/collection';
4-
import {ContextWithVariableBindings} from 'change_detection/parser/context_with_variable_bindings';
57

68
export function main() {
79
describe('ContextWithVariableBindings', () => {

modules/change_detection/test/parser/lexer_spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import {describe, it, expect} from 'test_lib/test_lib';
2+
23
import {Lexer, Token} from 'change_detection/parser/lexer';
4+
35
import {List, ListWrapper} from "facade/collection";
46
import {StringWrapper, int} from "facade/lang";
57

modules/change_detection/test/record_range_spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import {ddescribe, describe, it, iit, xit, expect, beforeEach} from 'test_lib/test_lib';
22

3-
import {List, ListWrapper, MapWrapper} from 'facade/collection';
4-
import {isPresent} from 'facade/lang';
53
import {Parser} from 'change_detection/parser/parser';
64
import {Lexer} from 'change_detection/parser/lexer';
75

6+
import {List, ListWrapper, MapWrapper} from 'facade/collection';
7+
import {isPresent} from 'facade/lang';
8+
89
import {
910
ChangeDetector,
1011
ProtoRecordRange,

modules/core/src/application.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import {DOM, Element} from 'facade/dom';
44
import {Compiler, CompilerCache} from './compiler/compiler';
55
import {ProtoView} from './compiler/view';
66
import {Reflector, reflector} from 'reflection/reflection';
7-
import {Parser} from 'change_detection/parser/parser';
8-
import {Lexer} from 'change_detection/parser/lexer';
9-
import {ChangeDetector} from 'change_detection/change_detector';
10-
import {RecordRange} from 'change_detection/record_range';
7+
import {Parser, Lexer, ChangeDetector, RecordRange} from 'change_detection/change_detection';
118
import {TemplateLoader} from './compiler/template_loader';
129
import {DirectiveMetadataReader} from './compiler/directive_metadata_reader';
1310
import {DirectiveMetadata} from './compiler/directive_metadata';

0 commit comments

Comments
 (0)