diff --git a/modules/angular1_router/src/ng_outlet.ts b/modules/angular1_router/src/ng_outlet.ts index 6913e55633..0ecbaef679 100644 --- a/modules/angular1_router/src/ng_outlet.ts +++ b/modules/angular1_router/src/ng_outlet.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + /// diff --git a/modules/benchmarks/e2e_test/old/compiler_perf.ts b/modules/benchmarks/e2e_test/old/compiler_perf.ts index 02901d241b..3343a9fae8 100644 --- a/modules/benchmarks/e2e_test/old/compiler_perf.ts +++ b/modules/benchmarks/e2e_test/old/compiler_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {verifyNoBrowserErrors} from '@angular/testing/src/e2e_util'; import {runBenchmark} from '@angular/testing/src/perf_util'; diff --git a/modules/benchmarks/e2e_test/old/costs_perf.ts b/modules/benchmarks/e2e_test/old/costs_perf.ts index 7a118bebee..d0e9a17b10 100644 --- a/modules/benchmarks/e2e_test/old/costs_perf.ts +++ b/modules/benchmarks/e2e_test/old/costs_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {verifyNoBrowserErrors} from '@angular/testing/src/e2e_util'; import {runClickBenchmark} from '@angular/testing/src/perf_util'; diff --git a/modules/benchmarks/e2e_test/old/di_perf.ts b/modules/benchmarks/e2e_test/old/di_perf.ts index 6d7e100b7a..c1563e200d 100644 --- a/modules/benchmarks/e2e_test/old/di_perf.ts +++ b/modules/benchmarks/e2e_test/old/di_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {verifyNoBrowserErrors} from '@angular/testing/src/e2e_util'; import {runClickBenchmark} from '@angular/testing/src/perf_util'; diff --git a/modules/benchmarks/e2e_test/old/largetable_perf.ts b/modules/benchmarks/e2e_test/old/largetable_perf.ts index 5466e3d5dc..5ba695b311 100644 --- a/modules/benchmarks/e2e_test/old/largetable_perf.ts +++ b/modules/benchmarks/e2e_test/old/largetable_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {verifyNoBrowserErrors} from '@angular/testing/src/e2e_util'; import {runClickBenchmark} from '@angular/testing/src/perf_util'; diff --git a/modules/benchmarks/e2e_test/old/naive_infinite_scroll_perf.ts b/modules/benchmarks/e2e_test/old/naive_infinite_scroll_perf.ts index 77b834043e..64033c9a43 100644 --- a/modules/benchmarks/e2e_test/old/naive_infinite_scroll_perf.ts +++ b/modules/benchmarks/e2e_test/old/naive_infinite_scroll_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {verifyNoBrowserErrors} from '@angular/testing/src/e2e_util'; import {runBenchmark} from '@angular/testing/src/perf_util'; diff --git a/modules/benchmarks/e2e_test/old/naive_infinite_scroll_spec.ts b/modules/benchmarks/e2e_test/old/naive_infinite_scroll_spec.ts index d05d9359eb..b6b9df3dbe 100644 --- a/modules/benchmarks/e2e_test/old/naive_infinite_scroll_spec.ts +++ b/modules/benchmarks/e2e_test/old/naive_infinite_scroll_spec.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {verifyNoBrowserErrors} from '@angular/testing/src/e2e_util'; import {runClickBenchmark} from '@angular/testing/src/perf_util'; diff --git a/modules/benchmarks/e2e_test/old/page_load_perf.ts b/modules/benchmarks/e2e_test/old/page_load_perf.ts index 878e095e46..7790251e26 100644 --- a/modules/benchmarks/e2e_test/old/page_load_perf.ts +++ b/modules/benchmarks/e2e_test/old/page_load_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {verifyNoBrowserErrors} from 'angular2/src/testing/perf_util'; describe('ng2 largetable benchmark', function() { diff --git a/modules/benchmarks/e2e_test/old/selector_perf.ts b/modules/benchmarks/e2e_test/old/selector_perf.ts index feee7092fd..9be901aa51 100644 --- a/modules/benchmarks/e2e_test/old/selector_perf.ts +++ b/modules/benchmarks/e2e_test/old/selector_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {verifyNoBrowserErrors} from '@angular/testing/src/e2e_util'; import {runClickBenchmark} from '@angular/testing/src/perf_util'; diff --git a/modules/benchmarks/e2e_test/old/static_tree_perf.ts b/modules/benchmarks/e2e_test/old/static_tree_perf.ts index 74f917819d..dee06fc149 100644 --- a/modules/benchmarks/e2e_test/old/static_tree_perf.ts +++ b/modules/benchmarks/e2e_test/old/static_tree_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {verifyNoBrowserErrors} from '@angular/testing/src/e2e_util'; import {runClickBenchmark} from '@angular/testing/src/perf_util'; diff --git a/modules/benchmarks/src/largeform/ng2/app.ts b/modules/benchmarks/src/largeform/ng2/app.ts index a35864499c..e99bf322d5 100644 --- a/modules/benchmarks/src/largeform/ng2/app.ts +++ b/modules/benchmarks/src/largeform/ng2/app.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Component, NgModule} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {BrowserModule} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/largeform/ng2/index.ts b/modules/benchmarks/src/largeform/ng2/index.ts index 9ff4055b14..d630106729 100644 --- a/modules/benchmarks/src/largeform/ng2/index.ts +++ b/modules/benchmarks/src/largeform/ng2/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; diff --git a/modules/benchmarks/src/largeform/ng2/index_aot.ts b/modules/benchmarks/src/largeform/ng2/index_aot.ts index a42d3aa1b3..72cde6fe61 100644 --- a/modules/benchmarks/src/largeform/ng2/index_aot.ts +++ b/modules/benchmarks/src/largeform/ng2/index_aot.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowser} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/largeform/ng2/init.ts b/modules/benchmarks/src/largeform/ng2/init.ts index bf66b058c6..0fa651293c 100644 --- a/modules/benchmarks/src/largeform/ng2/init.ts +++ b/modules/benchmarks/src/largeform/ng2/init.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {ApplicationRef, NgModuleRef} from '@angular/core'; import {bindAction, getIntParameter, profile} from '../../util'; diff --git a/modules/benchmarks/src/largetable/baseline/index.ts b/modules/benchmarks/src/largetable/baseline/index.ts index efbdae30cc..cd9c24cc7b 100644 --- a/modules/benchmarks/src/largetable/baseline/index.ts +++ b/modules/benchmarks/src/largetable/baseline/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {bindAction, profile} from '../../util'; import {buildTable, emptyTable} from '../util'; import {TableComponent} from './table'; diff --git a/modules/benchmarks/src/largetable/baseline/table.ts b/modules/benchmarks/src/largetable/baseline/table.ts index 2f07694e56..4950e5b2d7 100644 --- a/modules/benchmarks/src/largetable/baseline/table.ts +++ b/modules/benchmarks/src/largetable/baseline/table.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {TableCell} from '../util'; export class TableComponent { diff --git a/modules/benchmarks/src/largetable/incremental_dom/index.ts b/modules/benchmarks/src/largetable/incremental_dom/index.ts index d3458cd310..295311faf4 100644 --- a/modules/benchmarks/src/largetable/incremental_dom/index.ts +++ b/modules/benchmarks/src/largetable/incremental_dom/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {bindAction, profile} from '../../util'; import {buildTable, emptyTable} from '../util'; import {TableComponent} from './table'; diff --git a/modules/benchmarks/src/largetable/incremental_dom/table.ts b/modules/benchmarks/src/largetable/incremental_dom/table.ts index 1ea8ea40a1..6abf149534 100644 --- a/modules/benchmarks/src/largetable/incremental_dom/table.ts +++ b/modules/benchmarks/src/largetable/incremental_dom/table.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {TableCell} from '../util'; const {patch, elementOpen, elementClose, elementOpenStart, elementOpenEnd, attr, text} = require('incremental-dom'); diff --git a/modules/benchmarks/src/largetable/ng2/index.ts b/modules/benchmarks/src/largetable/ng2/index.ts index 60753688ae..c7d73eb3f2 100644 --- a/modules/benchmarks/src/largetable/ng2/index.ts +++ b/modules/benchmarks/src/largetable/ng2/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; diff --git a/modules/benchmarks/src/largetable/ng2/index_aot.ts b/modules/benchmarks/src/largetable/ng2/index_aot.ts index 9c4e49de2e..36677d76c5 100644 --- a/modules/benchmarks/src/largetable/ng2/index_aot.ts +++ b/modules/benchmarks/src/largetable/ng2/index_aot.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowser} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/largetable/ng2/init.ts b/modules/benchmarks/src/largetable/ng2/init.ts index ef9d6d1354..054ea20948 100644 --- a/modules/benchmarks/src/largetable/ng2/init.ts +++ b/modules/benchmarks/src/largetable/ng2/init.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {ApplicationRef, NgModuleRef} from '@angular/core'; import {bindAction, profile} from '../../util'; diff --git a/modules/benchmarks/src/largetable/ng2/table.ts b/modules/benchmarks/src/largetable/ng2/table.ts index 53ecbcd1d5..387fa5adc4 100644 --- a/modules/benchmarks/src/largetable/ng2/table.ts +++ b/modules/benchmarks/src/largetable/ng2/table.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Component, Input, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/largetable/ng2_switch/index.ts b/modules/benchmarks/src/largetable/ng2_switch/index.ts index 60753688ae..c7d73eb3f2 100644 --- a/modules/benchmarks/src/largetable/ng2_switch/index.ts +++ b/modules/benchmarks/src/largetable/ng2_switch/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; diff --git a/modules/benchmarks/src/largetable/ng2_switch/index_aot.ts b/modules/benchmarks/src/largetable/ng2_switch/index_aot.ts index 9c4e49de2e..36677d76c5 100644 --- a/modules/benchmarks/src/largetable/ng2_switch/index_aot.ts +++ b/modules/benchmarks/src/largetable/ng2_switch/index_aot.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowser} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/largetable/ng2_switch/init.ts b/modules/benchmarks/src/largetable/ng2_switch/init.ts index ef9d6d1354..054ea20948 100644 --- a/modules/benchmarks/src/largetable/ng2_switch/init.ts +++ b/modules/benchmarks/src/largetable/ng2_switch/init.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {ApplicationRef, NgModuleRef} from '@angular/core'; import {bindAction, profile} from '../../util'; diff --git a/modules/benchmarks/src/largetable/ng2_switch/table.ts b/modules/benchmarks/src/largetable/ng2_switch/table.ts index bcb307076a..4cea30d971 100644 --- a/modules/benchmarks/src/largetable/ng2_switch/table.ts +++ b/modules/benchmarks/src/largetable/ng2_switch/table.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Component, Input, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; @@ -8,7 +16,7 @@ import {TableCell, emptyTable} from '../util'; template: `
` diff --git a/modules/benchmarks/src/largetable/util.ts b/modules/benchmarks/src/largetable/util.ts index 662f2cc132..a007224bf1 100644 --- a/modules/benchmarks/src/largetable/util.ts +++ b/modules/benchmarks/src/largetable/util.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {getIntParameter} from '../util'; export class TableCell { diff --git a/modules/benchmarks/src/old/compiler/compiler_benchmark.ts b/modules/benchmarks/src/old/compiler/compiler_benchmark.ts index 1e99563afc..5376c2eb15 100644 --- a/modules/benchmarks/src/old/compiler/compiler_benchmark.ts +++ b/modules/benchmarks/src/old/compiler/compiler_benchmark.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {PromiseWrapper} from '@angular/facade/src/async'; import {Type, print} from '@angular/facade/src/lang'; import {bootstrap} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/old/compiler/selector_benchmark.ts b/modules/benchmarks/src/old/compiler/selector_benchmark.ts index 9a9c5d95cc..6fd6ba5ff7 100644 --- a/modules/benchmarks/src/old/compiler/selector_benchmark.ts +++ b/modules/benchmarks/src/old/compiler/selector_benchmark.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {SelectorMatcher} from '@angular/compiler/src/selector'; import {CssSelector} from '@angular/compiler/src/selector'; import {Math} from '@angular/facade/lang'; diff --git a/modules/benchmarks/src/old/costs/index.ts b/modules/benchmarks/src/old/costs/index.ts index 427940edc0..1e5c9d96d7 100644 --- a/modules/benchmarks/src/old/costs/index.ts +++ b/modules/benchmarks/src/old/costs/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {NgFor, NgIf} from '@angular/common'; import {Component, Directive, DynamicComponentLoader, ViewContainerRef} from '@angular/core'; import {ApplicationRef} from '@angular/core/src/application_ref'; @@ -111,4 +119,4 @@ class AppComponent { @NgModule({imports: [BrowserModule], bootstrap: [AppComponent]}) class AppModule { -} \ No newline at end of file +} diff --git a/modules/benchmarks/src/old/di/di_benchmark.ts b/modules/benchmarks/src/old/di/di_benchmark.ts index 3fa18b851d..ea6a35ea57 100644 --- a/modules/benchmarks/src/old/di/di_benchmark.ts +++ b/modules/benchmarks/src/old/di/di_benchmark.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Injectable, ReflectiveInjector, ReflectiveKey} from '@angular/core'; import {reflector} from '@angular/core/src/reflection/reflection'; import {ReflectionCapabilities} from '@angular/core/src/reflection/reflection_capabilities'; diff --git a/modules/benchmarks/src/old/naive_infinite_scroll/app.ts b/modules/benchmarks/src/old/naive_infinite_scroll/app.ts index de1fefb110..e9bd7c433d 100644 --- a/modules/benchmarks/src/old/naive_infinite_scroll/app.ts +++ b/modules/benchmarks/src/old/naive_infinite_scroll/app.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {NgFor, NgIf} from '@angular/common'; import {Component, Directive} from '@angular/core'; import {TimerWrapper} from '@angular/facade/src/async'; diff --git a/modules/benchmarks/src/old/naive_infinite_scroll/cells.ts b/modules/benchmarks/src/old/naive_infinite_scroll/cells.ts index fa76827f6b..4997e0a9d5 100644 --- a/modules/benchmarks/src/old/naive_infinite_scroll/cells.ts +++ b/modules/benchmarks/src/old/naive_infinite_scroll/cells.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {NgFor} from '@angular/common'; import {Component, Directive} from '@angular/core'; diff --git a/modules/benchmarks/src/old/naive_infinite_scroll/common.ts b/modules/benchmarks/src/old/naive_infinite_scroll/common.ts index e874c26a53..71aa3403c8 100644 --- a/modules/benchmarks/src/old/naive_infinite_scroll/common.ts +++ b/modules/benchmarks/src/old/naive_infinite_scroll/common.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Math} from '@angular/facade/src/math'; export var ITEMS = 1000; diff --git a/modules/benchmarks/src/old/naive_infinite_scroll/index.ts b/modules/benchmarks/src/old/naive_infinite_scroll/index.ts index ec8a2244cb..e7ee5d71b9 100644 --- a/modules/benchmarks/src/old/naive_infinite_scroll/index.ts +++ b/modules/benchmarks/src/old/naive_infinite_scroll/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; @@ -10,4 +18,4 @@ class AppModule { export function main() { platformBrowserDynamic().bootstrapModule(AppModule); -} \ No newline at end of file +} diff --git a/modules/benchmarks/src/old/naive_infinite_scroll/random_data.ts b/modules/benchmarks/src/old/naive_infinite_scroll/random_data.ts index b17c5f70e3..6bd9aa68e4 100644 --- a/modules/benchmarks/src/old/naive_infinite_scroll/random_data.ts +++ b/modules/benchmarks/src/old/naive_infinite_scroll/random_data.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {AAT_STATUS_LIST, Account, Company, CustomDate, Offering, Opportunity, STATUS_LIST} from './common'; export function generateOfferings(count: number): Offering[] { diff --git a/modules/benchmarks/src/old/naive_infinite_scroll/scroll_area.ts b/modules/benchmarks/src/old/naive_infinite_scroll/scroll_area.ts index d598fff1fa..3c8a99a159 100644 --- a/modules/benchmarks/src/old/naive_infinite_scroll/scroll_area.ts +++ b/modules/benchmarks/src/old/naive_infinite_scroll/scroll_area.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {NgFor} from '@angular/common'; import {Component, Directive} from '@angular/core'; diff --git a/modules/benchmarks/src/old/naive_infinite_scroll/scroll_item.ts b/modules/benchmarks/src/old/naive_infinite_scroll/scroll_item.ts index 3e866b75a0..b888624544 100644 --- a/modules/benchmarks/src/old/naive_infinite_scroll/scroll_item.ts +++ b/modules/benchmarks/src/old/naive_infinite_scroll/scroll_item.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Component, Directive} from '@angular/core'; import {AccountCellComponent, CompanyNameComponent, FormattedCellComponent, OfferingNameComponent, OpportunityNameComponent, StageButtonsComponent} from './cells'; diff --git a/modules/benchmarks/src/old/page_load/page_load.ts b/modules/benchmarks/src/old/page_load/page_load.ts index 1c9f8ad97b..aba9a81e65 100644 --- a/modules/benchmarks/src/old/page_load/page_load.ts +++ b/modules/benchmarks/src/old/page_load/page_load.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {Component, NgModule} from 'angular2/core'; diff --git a/modules/benchmarks/src/tree/baseline/index.ts b/modules/benchmarks/src/tree/baseline/index.ts index a17677a66d..0ce05717b2 100644 --- a/modules/benchmarks/src/tree/baseline/index.ts +++ b/modules/benchmarks/src/tree/baseline/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {bindAction, profile} from '../../util'; import {buildTree, emptyTree} from '../util'; import {TreeComponent} from './tree'; diff --git a/modules/benchmarks/src/tree/baseline/tree.ts b/modules/benchmarks/src/tree/baseline/tree.ts index 98c330ca61..adf283b66c 100644 --- a/modules/benchmarks/src/tree/baseline/tree.ts +++ b/modules/benchmarks/src/tree/baseline/tree.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {TreeNode} from '../util'; export class TreeComponent { diff --git a/modules/benchmarks/src/tree/incremental_dom/index.ts b/modules/benchmarks/src/tree/incremental_dom/index.ts index eb2e17827d..0831b3cc43 100644 --- a/modules/benchmarks/src/tree/incremental_dom/index.ts +++ b/modules/benchmarks/src/tree/incremental_dom/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {bindAction, profile} from '../../util'; import {buildTree, emptyTree} from '../util'; import {TreeComponent} from './tree'; diff --git a/modules/benchmarks/src/tree/incremental_dom/tree.ts b/modules/benchmarks/src/tree/incremental_dom/tree.ts index 86ca2e3e30..3915288cec 100644 --- a/modules/benchmarks/src/tree/incremental_dom/tree.ts +++ b/modules/benchmarks/src/tree/incremental_dom/tree.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {TreeNode} from '../util'; const {patch, elementOpen, elementClose, elementOpenStart, elementOpenEnd, text, attr} = require('incremental-dom'); diff --git a/modules/benchmarks/src/tree/ng2/index.ts b/modules/benchmarks/src/tree/ng2/index.ts index 46623a157e..3dc8eab927 100644 --- a/modules/benchmarks/src/tree/ng2/index.ts +++ b/modules/benchmarks/src/tree/ng2/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; diff --git a/modules/benchmarks/src/tree/ng2/index_aot.ts b/modules/benchmarks/src/tree/ng2/index_aot.ts index 27f907ed17..20a343d703 100644 --- a/modules/benchmarks/src/tree/ng2/index_aot.ts +++ b/modules/benchmarks/src/tree/ng2/index_aot.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowser} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/tree/ng2/init.ts b/modules/benchmarks/src/tree/ng2/init.ts index d708fdbefb..a1f3af1c60 100644 --- a/modules/benchmarks/src/tree/ng2/init.ts +++ b/modules/benchmarks/src/tree/ng2/init.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {ApplicationRef, NgModuleRef} from '@angular/core'; import {bindAction, profile} from '../../util'; diff --git a/modules/benchmarks/src/tree/ng2/tree.ts b/modules/benchmarks/src/tree/ng2/tree.ts index 5d49d0fa54..931c92f350 100644 --- a/modules/benchmarks/src/tree/ng2/tree.ts +++ b/modules/benchmarks/src/tree/ng2/tree.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Component, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/tree/ng2_ftl/ftl_util.ts b/modules/benchmarks/src/tree/ng2_ftl/ftl_util.ts index 0b8c69b2fa..13d5fc184d 100644 --- a/modules/benchmarks/src/tree/ng2_ftl/ftl_util.ts +++ b/modules/benchmarks/src/tree/ng2_ftl/ftl_util.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {ComponentFactory, ComponentRef, ElementRef, Injector, TemplateRef, ViewContainerRef, ViewRef} from '@angular/core'; export function unimplemented(): any { @@ -196,4 +204,4 @@ export function createAnchorAndAppend(parent: any) { const txt = document.createComment(''); parent.appendChild(txt); return txt; -} \ No newline at end of file +} diff --git a/modules/benchmarks/src/tree/ng2_ftl/index.ts b/modules/benchmarks/src/tree/ng2_ftl/index.ts index c72296c699..3613a3e733 100644 --- a/modules/benchmarks/src/tree/ng2_ftl/index.ts +++ b/modules/benchmarks/src/tree/ng2_ftl/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {ApplicationRef, enableProdMode} from '@angular/core'; import {platformBrowser} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/tree/ng2_ftl/tree.ts b/modules/benchmarks/src/tree/ng2_ftl/tree.ts index aef20567f4..1429f2e0a8 100644 --- a/modules/benchmarks/src/tree/ng2_ftl/tree.ts +++ b/modules/benchmarks/src/tree/ng2_ftl/tree.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {TreeNode, emptyTree} from '../util'; export class TreeComponent { data: TreeNode = emptyTree; } diff --git a/modules/benchmarks/src/tree/ng2_static/index.ts b/modules/benchmarks/src/tree/ng2_static/index.ts index d4e8b3c4f6..abe7d0d534 100644 --- a/modules/benchmarks/src/tree/ng2_static/index.ts +++ b/modules/benchmarks/src/tree/ng2_static/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {ApplicationRef, enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; diff --git a/modules/benchmarks/src/tree/ng2_static/tree.ts b/modules/benchmarks/src/tree/ng2_static/tree.ts index e9364d7289..cdf198c6da 100644 --- a/modules/benchmarks/src/tree/ng2_static/tree.ts +++ b/modules/benchmarks/src/tree/ng2_static/tree.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Component, Input, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/tree/ng2_static_ftl/app.ts b/modules/benchmarks/src/tree/ng2_static_ftl/app.ts index 218010265c..9f55cbca2d 100644 --- a/modules/benchmarks/src/tree/ng2_static_ftl/app.ts +++ b/modules/benchmarks/src/tree/ng2_static_ftl/app.ts @@ -1 +1,9 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + export class AppModule {} diff --git a/modules/benchmarks/src/tree/ng2_static_ftl/ftl_util.ts b/modules/benchmarks/src/tree/ng2_static_ftl/ftl_util.ts index 9434a049fa..8a7cc1d0f4 100644 --- a/modules/benchmarks/src/tree/ng2_static_ftl/ftl_util.ts +++ b/modules/benchmarks/src/tree/ng2_static_ftl/ftl_util.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + export function createElementAndAppend(parent: any, name: string) { const el = document.createElement(name); parent.appendChild(el); @@ -14,4 +22,4 @@ export function createAnchorAndAppend(parent: any) { const txt = document.createComment(''); parent.appendChild(txt); return txt; -} \ No newline at end of file +} diff --git a/modules/benchmarks/src/tree/ng2_static_ftl/index.ts b/modules/benchmarks/src/tree/ng2_static_ftl/index.ts index 38bd32108b..60aec49dcc 100644 --- a/modules/benchmarks/src/tree/ng2_static_ftl/index.ts +++ b/modules/benchmarks/src/tree/ng2_static_ftl/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {ApplicationRef, enableProdMode} from '@angular/core'; import {platformBrowser} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/tree/ng2_static_ftl/tree.ts b/modules/benchmarks/src/tree/ng2_static_ftl/tree.ts index 431f1331c8..0fab515932 100644 --- a/modules/benchmarks/src/tree/ng2_static_ftl/tree.ts +++ b/modules/benchmarks/src/tree/ng2_static_ftl/tree.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {TreeNode, emptyTree} from '../util'; export class TreeRootComponent { data: TreeNode = emptyTree; } diff --git a/modules/benchmarks/src/tree/ng2_switch/index.ts b/modules/benchmarks/src/tree/ng2_switch/index.ts index 46623a157e..3dc8eab927 100644 --- a/modules/benchmarks/src/tree/ng2_switch/index.ts +++ b/modules/benchmarks/src/tree/ng2_switch/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; diff --git a/modules/benchmarks/src/tree/ng2_switch/index_aot.ts b/modules/benchmarks/src/tree/ng2_switch/index_aot.ts index 27f907ed17..20a343d703 100644 --- a/modules/benchmarks/src/tree/ng2_switch/index_aot.ts +++ b/modules/benchmarks/src/tree/ng2_switch/index_aot.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {enableProdMode} from '@angular/core'; import {platformBrowser} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/tree/ng2_switch/init.ts b/modules/benchmarks/src/tree/ng2_switch/init.ts index 280c9b0ca3..ce997d35c1 100644 --- a/modules/benchmarks/src/tree/ng2_switch/init.ts +++ b/modules/benchmarks/src/tree/ng2_switch/init.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {ApplicationRef, NgModuleRef} from '@angular/core'; import {bindAction, profile} from '../../util'; diff --git a/modules/benchmarks/src/tree/ng2_switch/tree.ts b/modules/benchmarks/src/tree/ng2_switch/tree.ts index a255279727..4216449074 100644 --- a/modules/benchmarks/src/tree/ng2_switch/tree.ts +++ b/modules/benchmarks/src/tree/ng2_switch/tree.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Component, Input, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; diff --git a/modules/benchmarks/src/tree/polymer/index.ts b/modules/benchmarks/src/tree/polymer/index.ts index d230f1d60a..5f1ee89984 100644 --- a/modules/benchmarks/src/tree/polymer/index.ts +++ b/modules/benchmarks/src/tree/polymer/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {bindAction, profile} from '../../util'; import {buildTree, emptyTree} from '../util'; diff --git a/modules/benchmarks/src/tree/polymer_leaves/index.ts b/modules/benchmarks/src/tree/polymer_leaves/index.ts index 90600b387f..d16f649a02 100644 --- a/modules/benchmarks/src/tree/polymer_leaves/index.ts +++ b/modules/benchmarks/src/tree/polymer_leaves/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {bindAction} from '../../util'; import {buildTree, flattenTree} from '../util'; diff --git a/modules/benchmarks/src/tree/util.ts b/modules/benchmarks/src/tree/util.ts index dce47d329e..c8dfdcff85 100644 --- a/modules/benchmarks/src/tree/util.ts +++ b/modules/benchmarks/src/tree/util.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {getIntParameter} from '../util'; export class TreeNode { diff --git a/modules/benchmarks_external/e2e_test/compiler_perf.ts b/modules/benchmarks_external/e2e_test/compiler_perf.ts index 5b8a3e242c..8c4531fb7a 100644 --- a/modules/benchmarks_external/e2e_test/compiler_perf.ts +++ b/modules/benchmarks_external/e2e_test/compiler_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {runClickBenchmark, verifyNoBrowserErrors} from '@angular/testing/src/perf_util'; describe('ng1.x compiler benchmark', function() { diff --git a/modules/benchmarks_external/e2e_test/largetable_perf.ts b/modules/benchmarks_external/e2e_test/largetable_perf.ts index 592f259b19..e98465871f 100644 --- a/modules/benchmarks_external/e2e_test/largetable_perf.ts +++ b/modules/benchmarks_external/e2e_test/largetable_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {runClickBenchmark, verifyNoBrowserErrors} from '@angular/testing/src/perf_util'; describe('ng1.x largetable benchmark', function() { diff --git a/modules/benchmarks_external/e2e_test/naive_infinite_scroll_perf.ts b/modules/benchmarks_external/e2e_test/naive_infinite_scroll_perf.ts index b280a0c77e..48d7930af6 100644 --- a/modules/benchmarks_external/e2e_test/naive_infinite_scroll_perf.ts +++ b/modules/benchmarks_external/e2e_test/naive_infinite_scroll_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {runBenchmark, verifyNoBrowserErrors} from '@angular/testing/src/perf_util'; describe('ng-dart1.x naive infinite scroll benchmark', function() { diff --git a/modules/benchmarks_external/e2e_test/polymer_tree_perf.ts b/modules/benchmarks_external/e2e_test/polymer_tree_perf.ts index b8e9088345..b745f719c8 100644 --- a/modules/benchmarks_external/e2e_test/polymer_tree_perf.ts +++ b/modules/benchmarks_external/e2e_test/polymer_tree_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {runClickBenchmark, verifyNoBrowserErrors} from '@angular/testing/src/perf_util'; describe('polymer tree benchmark', function() { diff --git a/modules/benchmarks_external/e2e_test/react_tree_perf.ts b/modules/benchmarks_external/e2e_test/react_tree_perf.ts index bb3eb1e5ad..c058464157 100644 --- a/modules/benchmarks_external/e2e_test/react_tree_perf.ts +++ b/modules/benchmarks_external/e2e_test/react_tree_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {runClickBenchmark, verifyNoBrowserErrors} from '@angular/testing/src/perf_util'; describe('react tree benchmark', function() { diff --git a/modules/benchmarks_external/e2e_test/static_tree_perf.ts b/modules/benchmarks_external/e2e_test/static_tree_perf.ts index 14a099c5c1..0a65890a1d 100644 --- a/modules/benchmarks_external/e2e_test/static_tree_perf.ts +++ b/modules/benchmarks_external/e2e_test/static_tree_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {runClickBenchmark, verifyNoBrowserErrors} from '@angular/testing/src/perf_util'; describe('ng1.x tree benchmark', function() { diff --git a/modules/benchmarks_external/e2e_test/tree_perf.ts b/modules/benchmarks_external/e2e_test/tree_perf.ts index 7983441c48..a749e1578a 100644 --- a/modules/benchmarks_external/e2e_test/tree_perf.ts +++ b/modules/benchmarks_external/e2e_test/tree_perf.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {runClickBenchmark, verifyNoBrowserErrors} from '@angular/testing/src/perf_util'; describe('ng1.x tree benchmark', function() { diff --git a/modules/benchmarks_external/src/compiler/compiler_benchmark.ts b/modules/benchmarks_external/src/compiler/compiler_benchmark.ts index 2cdcfe7022..c04a928396 100644 --- a/modules/benchmarks_external/src/compiler/compiler_benchmark.ts +++ b/modules/benchmarks_external/src/compiler/compiler_benchmark.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + // compiler benchmark in AngularJS 1.x import {getIntParameter, bindAction} from '@angular/testing/src/benchmark_util'; declare var angular: any; diff --git a/modules/benchmarks_external/src/largetable/largetable_benchmark.ts b/modules/benchmarks_external/src/largetable/largetable_benchmark.ts index 8f0d85915f..8446c60bab 100644 --- a/modules/benchmarks_external/src/largetable/largetable_benchmark.ts +++ b/modules/benchmarks_external/src/largetable/largetable_benchmark.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {getIntParameter, getStringParameter, bindAction} from '@angular/testing/src/benchmark_util'; declare var angular: any; diff --git a/modules/benchmarks_external/src/static_tree/tree_benchmark.ts b/modules/benchmarks_external/src/static_tree/tree_benchmark.ts index eb942290c0..e567f7f8d3 100644 --- a/modules/benchmarks_external/src/static_tree/tree_benchmark.ts +++ b/modules/benchmarks_external/src/static_tree/tree_benchmark.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + // static tree benchmark in AngularJS 1.x import {getIntParameter, bindAction} from '@angular/testing/src/benchmark_util'; declare var angular: any; diff --git a/modules/benchmarks_external/src/tree/react/index.ts b/modules/benchmarks_external/src/tree/react/index.ts index 1ea00d583e..ef0912fafa 100644 --- a/modules/benchmarks_external/src/tree/react/index.ts +++ b/modules/benchmarks_external/src/tree/react/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + // tree benchmark in React import {getIntParameter, bindAction} from '@angular/testing/src/benchmark_util'; import * as React from './react.min'; diff --git a/modules/benchmarks_external/src/tree/tree_benchmark.ts b/modules/benchmarks_external/src/tree/tree_benchmark.ts index ed804ed8bc..af84cc8332 100644 --- a/modules/benchmarks_external/src/tree/tree_benchmark.ts +++ b/modules/benchmarks_external/src/tree/tree_benchmark.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + // tree benchmark in AngularJS 1.x import {getIntParameter, bindAction} from '@angular/testing/src/benchmark_util'; declare var angular: any; diff --git a/modules/payload_tests/hello_world/ts/systemjs/index.ts b/modules/payload_tests/hello_world/ts/systemjs/index.ts index 61e389ee61..d770ed63b0 100644 --- a/modules/payload_tests/hello_world/ts/systemjs/index.ts +++ b/modules/payload_tests/hello_world/ts/systemjs/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Component, NgModule} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {BrowserModule} from '@angular/platform-browser'; diff --git a/modules/payload_tests/hello_world/ts/webpack/index.ts b/modules/payload_tests/hello_world/ts/webpack/index.ts index 88189de505..d3ca23fdfc 100644 --- a/modules/payload_tests/hello_world/ts/webpack/index.ts +++ b/modules/payload_tests/hello_world/ts/webpack/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {Component, NgModule} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {BrowserModule} from '@angular/platform-browser'; diff --git a/tools/@angular/tsc-wrapped/index.ts b/tools/@angular/tsc-wrapped/index.ts index 42b3685ca4..99edfa0062 100644 --- a/tools/@angular/tsc-wrapped/index.ts +++ b/tools/@angular/tsc-wrapped/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + export {MetadataWriterHost, TsickleHost} from './src/compiler_host'; export {CodegenExtension, main} from './src/main'; diff --git a/tools/@angular/tsc-wrapped/src/collector.ts b/tools/@angular/tsc-wrapped/src/collector.ts index f610b01549..8d66823a6f 100644 --- a/tools/@angular/tsc-wrapped/src/collector.ts +++ b/tools/@angular/tsc-wrapped/src/collector.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as ts from 'typescript'; import {Evaluator, errorSymbol, isPrimitive} from './evaluator'; diff --git a/tools/@angular/tsc-wrapped/src/compiler_host.ts b/tools/@angular/tsc-wrapped/src/compiler_host.ts index f0c6c1afc4..9cce1995df 100644 --- a/tools/@angular/tsc-wrapped/src/compiler_host.ts +++ b/tools/@angular/tsc-wrapped/src/compiler_host.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {writeFileSync} from 'fs'; import {convertDecorators} from 'tsickle'; import * as ts from 'typescript'; diff --git a/tools/@angular/tsc-wrapped/src/evaluator.ts b/tools/@angular/tsc-wrapped/src/evaluator.ts index b723e74647..7bb6cbed6b 100644 --- a/tools/@angular/tsc-wrapped/src/evaluator.ts +++ b/tools/@angular/tsc-wrapped/src/evaluator.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as ts from 'typescript'; import {MetadataEntry, MetadataError, MetadataGlobalReferenceExpression, MetadataImportedSymbolReferenceExpression, MetadataSymbolicCallExpression, MetadataSymbolicReferenceExpression, MetadataValue, isMetadataError, isMetadataGlobalReferenceExpression, isMetadataImportedSymbolReferenceExpression, isMetadataModuleReferenceExpression, isMetadataSymbolicReferenceExpression, isMetadataSymbolicSpreadExpression} from './schema'; @@ -548,4 +556,4 @@ export class Evaluator { function isPropertyAssignment(node: ts.Node): node is ts.PropertyAssignment { return node.kind == ts.SyntaxKind.PropertyAssignment; -} \ No newline at end of file +} diff --git a/tools/@angular/tsc-wrapped/src/main.ts b/tools/@angular/tsc-wrapped/src/main.ts index 52f08443e2..1fcff51d1e 100644 --- a/tools/@angular/tsc-wrapped/src/main.ts +++ b/tools/@angular/tsc-wrapped/src/main.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as fs from 'fs'; import * as path from 'path'; import * as ts from 'typescript'; diff --git a/tools/@angular/tsc-wrapped/src/options.ts b/tools/@angular/tsc-wrapped/src/options.ts index db6f7bee41..30c4106fc3 100644 --- a/tools/@angular/tsc-wrapped/src/options.ts +++ b/tools/@angular/tsc-wrapped/src/options.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as ts from 'typescript'; interface Options extends ts.CompilerOptions { diff --git a/tools/@angular/tsc-wrapped/src/schema.ts b/tools/@angular/tsc-wrapped/src/schema.ts index 4016c394e7..22763e3120 100644 --- a/tools/@angular/tsc-wrapped/src/schema.ts +++ b/tools/@angular/tsc-wrapped/src/schema.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + // Metadata Schema // If you make a backwards incompatible change to the schema, increment the VERSION number. diff --git a/tools/@angular/tsc-wrapped/src/symbols.ts b/tools/@angular/tsc-wrapped/src/symbols.ts index c3d96145f0..e29819be54 100644 --- a/tools/@angular/tsc-wrapped/src/symbols.ts +++ b/tools/@angular/tsc-wrapped/src/symbols.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as ts from 'typescript'; import {MetadataValue} from './schema'; diff --git a/tools/@angular/tsc-wrapped/src/tsc.ts b/tools/@angular/tsc-wrapped/src/tsc.ts index 1ffb1831a2..9e3bad6a85 100644 --- a/tools/@angular/tsc-wrapped/src/tsc.ts +++ b/tools/@angular/tsc-wrapped/src/tsc.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {existsSync} from 'fs'; import * as path from 'path'; import * as ts from 'typescript'; diff --git a/tools/@angular/tsc-wrapped/test/collector.spec.ts b/tools/@angular/tsc-wrapped/test/collector.spec.ts index 1364102ad0..2eab24742e 100644 --- a/tools/@angular/tsc-wrapped/test/collector.spec.ts +++ b/tools/@angular/tsc-wrapped/test/collector.spec.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as ts from 'typescript'; import {MetadataCollector} from '../src/collector'; diff --git a/tools/@angular/tsc-wrapped/test/evaluator.spec.ts b/tools/@angular/tsc-wrapped/test/evaluator.spec.ts index 48018eaf54..9a69c257fe 100644 --- a/tools/@angular/tsc-wrapped/test/evaluator.spec.ts +++ b/tools/@angular/tsc-wrapped/test/evaluator.spec.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as fs from 'fs'; import * as ts from 'typescript'; diff --git a/tools/@angular/tsc-wrapped/test/symbols.spec.ts b/tools/@angular/tsc-wrapped/test/symbols.spec.ts index 4b6e700c7e..2e1177165a 100644 --- a/tools/@angular/tsc-wrapped/test/symbols.spec.ts +++ b/tools/@angular/tsc-wrapped/test/symbols.spec.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as ts from 'typescript'; import {isMetadataGlobalReferenceExpression} from '../src/schema'; @@ -122,4 +130,4 @@ const FILES: Directory = { import d from 'd'; import {f as g} from 'f'; ` -}; \ No newline at end of file +}; diff --git a/tools/@angular/tsc-wrapped/test/tsc.spec.ts b/tools/@angular/tsc-wrapped/test/tsc.spec.ts index f0c1ce5997..a340bb0277 100644 --- a/tools/@angular/tsc-wrapped/test/tsc.spec.ts +++ b/tools/@angular/tsc-wrapped/test/tsc.spec.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as ts from 'typescript'; import {Tsc} from '../src/tsc'; diff --git a/tools/cjs-jasmine/index-tools.ts b/tools/cjs-jasmine/index-tools.ts index b5764cb7dc..97d4123cc7 100644 --- a/tools/cjs-jasmine/index-tools.ts +++ b/tools/cjs-jasmine/index-tools.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + 'use strict'; var glob = require('glob'); diff --git a/tools/cjs-jasmine/index.ts b/tools/cjs-jasmine/index.ts index 65ff5878b2..67b4846829 100644 --- a/tools/cjs-jasmine/index.ts +++ b/tools/cjs-jasmine/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + 'use strict'; var glob = require('glob'); diff --git a/tools/cjs-jasmine/test-cjs-main.ts b/tools/cjs-jasmine/test-cjs-main.ts index 06a7c6f9d0..5d17d9ff2c 100644 --- a/tools/cjs-jasmine/test-cjs-main.ts +++ b/tools/cjs-jasmine/test-cjs-main.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + var testingPlatformServer = require('../../all/@angular/platform-server/testing/server.js'); var testing = require('../../all/@angular/core/testing'); diff --git a/tools/tsc-watch/index.ts b/tools/tsc-watch/index.ts index 3a0a107711..8d88ac5ebe 100644 --- a/tools/tsc-watch/index.ts +++ b/tools/tsc-watch/index.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {spawn} from 'child_process'; import {existsSync, mkdirSync, writeFileSync} from 'fs'; diff --git a/tools/tsc-watch/tsc_watch.ts b/tools/tsc-watch/tsc_watch.ts index fc2534ef9e..c5e62b8015 100644 --- a/tools/tsc-watch/tsc_watch.ts +++ b/tools/tsc-watch/tsc_watch.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {spawn} from 'child_process'; import {platform} from 'os'; import {normalize} from 'path'; diff --git a/tools/tslint/enforceCopyrightHeaderRule.ts b/tools/tslint/enforceCopyrightHeaderRule.ts new file mode 100644 index 0000000000..eae187deda --- /dev/null +++ b/tools/tslint/enforceCopyrightHeaderRule.ts @@ -0,0 +1,40 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +import {RuleWalker} from 'tslint/lib/language/walker'; +import {RuleFailure} from 'tslint/lib/lint'; +import {AbstractRule} from 'tslint/lib/rules'; +import * as ts from 'typescript'; + +export class Rule extends AbstractRule { + public static FAILURE_STRING = 'missing copyright header'; + + public apply(sourceFile: ts.SourceFile): RuleFailure[] { + const walker = new EnforceCopyrightHeaderWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + } +} + +class EnforceCopyrightHeaderWalker extends RuleWalker { + private regex: RegExp = /\/\*[\s\S]*?Copyright Google Inc\.[\s\S]*?\*\//; + + public visitSourceFile(node: ts.SourceFile) { + // check for a shebang + let text = node.getFullText(); + let offset = 0; + if (text.indexOf('#!') === 0) { + offset = text.indexOf('\n') + 1; + text = text.substring(offset); + } + // look for the copyright header + let match = text.match(this.regex); + if (!match || match.index !== 0) { + this.addFailure(this.createFailure(offset, offset + 1, Rule.FAILURE_STRING)); + } + } +} diff --git a/tools/tslint/requireInternalWithUnderscoreRule.ts b/tools/tslint/requireInternalWithUnderscoreRule.ts index 26d15393ff..dfc856b0ff 100644 --- a/tools/tslint/requireInternalWithUnderscoreRule.ts +++ b/tools/tslint/requireInternalWithUnderscoreRule.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import {RuleWalker} from 'tslint/lib/language/walker'; import {RuleFailure} from 'tslint/lib/lint'; import {AbstractRule} from 'tslint/lib/rules'; diff --git a/tools/typings-test/include-all.ts b/tools/typings-test/include-all.ts index 4794ae169b..fb5b5466c7 100644 --- a/tools/typings-test/include-all.ts +++ b/tools/typings-test/include-all.ts @@ -1,3 +1,11 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + import * as compiler from '@angular/compiler'; import * as compilerTesting from '@angular/compiler/testing'; import * as coreTesting from '@angular/core';