chore: replace CONST_EXPR with /*@ts2dart_const*/
This commit is contained in:

committed by
Martin Probst

parent
d2527b504a
commit
a02614beaa
@ -1,3 +1,2 @@
|
||||
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
|
||||
export const styles = CONST_EXPR([`.greenStyle[_ngcontent-a-1] { color: green; }`]);
|
||||
export const styles = /*@ts2dart_const*/[`.greenStyle[_ngcontent-a-1] { color: green; }`];
|
||||
|
@ -14,7 +14,7 @@ import {provide} from 'angular2/src/core/di';
|
||||
import {Console} from 'angular2/src/core/console';
|
||||
|
||||
import {TEST_PROVIDERS} from './test_bindings';
|
||||
import {isPresent, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {
|
||||
TemplateParser,
|
||||
splitClasses,
|
||||
@ -506,8 +506,8 @@ export function main() {
|
||||
}
|
||||
|
||||
function createProvider(
|
||||
token: string, {multi = false, deps = CONST_EXPR([])}:
|
||||
{multi?: boolean, deps?: string[]} = {}): CompileProviderMetadata {
|
||||
token: string, {multi = false, deps = /*@ts2dart_const*/[
|
||||
]}: {multi?: boolean, deps?: string[]} = {}): CompileProviderMetadata {
|
||||
return new CompileProviderMetadata({
|
||||
token: createToken(token),
|
||||
multi: multi,
|
||||
@ -516,13 +516,14 @@ export function main() {
|
||||
});
|
||||
}
|
||||
|
||||
function createDir(selector: string, {providers = null, viewProviders = null,
|
||||
deps = CONST_EXPR([]), queries = CONST_EXPR([])}: {
|
||||
providers?: CompileProviderMetadata[],
|
||||
viewProviders?: CompileProviderMetadata[],
|
||||
deps?: string[],
|
||||
queries?: string[]
|
||||
} = {}): CompileDirectiveMetadata {
|
||||
function createDir(selector: string,
|
||||
{providers = null, viewProviders = null, deps = /*@ts2dart_const*/[],
|
||||
queries = /*@ts2dart_const*/[]}: {
|
||||
providers?: CompileProviderMetadata[],
|
||||
viewProviders?: CompileProviderMetadata[],
|
||||
deps?: string[],
|
||||
queries?: string[]
|
||||
} = {}): CompileDirectiveMetadata {
|
||||
var isComponent = !selector.startsWith('[');
|
||||
return CompileDirectiveMetadata.create({
|
||||
selector: selector,
|
||||
|
Reference in New Issue
Block a user