Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: test/resolver_test.dart

Issue 1830403002: switch package to strong mode (Closed) Base URL: git@github.com:dart-lang/code_transformers.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/assets_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 @TestOn('vm') 5 @TestOn('vm')
6 library code_transformers.test.resolver_test; 6 library code_transformers.test.resolver_test;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import 'package:barback/barback.dart'; 10 import 'package:barback/barback.dart';
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 final bool resolveAllLibraries; 426 final bool resolveAllLibraries;
427 427
428 TestTransformer(Resolvers resolvers, this.primary, this.validator, 428 TestTransformer(Resolvers resolvers, this.primary, this.validator,
429 this.resolveAllLibraries) { 429 this.resolveAllLibraries) {
430 this.resolvers = resolvers; 430 this.resolvers = resolvers;
431 } 431 }
432 432
433 // TODO(nweiz): This should just take an AssetId when barback <0.13.0 support 433 // TODO(nweiz): This should just take an AssetId when barback <0.13.0 support
434 // is dropped. 434 // is dropped.
435 Future<bool> isPrimary(idOrAsset) { 435 Future<bool> isPrimary(idOrAsset) {
436 var id = idOrAsset is AssetId ? idOrAsset : idOrAsset.id; 436 var id = idOrAsset is AssetId ? idOrAsset : (idOrAsset as Asset).id;
437 return new Future.value(id == primary); 437 return new Future.value(id == primary);
438 } 438 }
439 439
440 applyResolver(Transform transform, Resolver resolver) => validator(resolver); 440 applyResolver(Transform transform, Resolver resolver) => validator(resolver);
441 } 441 }
OLDNEW
« no previous file with comments | « test/assets_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698