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

Side by Side Diff: lib/src/implementation.dart

Issue 1016913002: pkg/smoke: support latest analyzer version and formatted code (Closed) Base URL: https://github.com/dart-lang/smoke@master
Patch Set: updates Created 5 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 | « lib/src/default_transformer.dart ('k') | lib/static.dart » ('j') | 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 /// A library that is used to select the default implementation of smoke. During 5 /// A library that is used to select the default implementation of smoke. During
6 /// development we use a default mirror-based implementation, for deployment we 6 /// development we use a default mirror-based implementation, for deployment we
7 /// let the main program set programatically what implementation to use (likely 7 /// let the main program set programatically what implementation to use (likely
8 /// one based on static code generation). 8 /// one based on static code generation).
9 library smoke.src.implementation; 9 library smoke.src.implementation;
10 10
11 // IMPORTANT NOTE: This file is edited by a transformer in this package 11 // IMPORTANT NOTE: This file is edited by a transformer in this package
12 // (default_transformer.dart), so any edits here should be coordinated with 12 // (default_transformer.dart), so any edits here should be coordinated with
13 // changes there. 13 // changes there.
14 14
15 import 'package:smoke/mirrors.dart'; 15 import 'package:smoke/mirrors.dart';
16 import 'package:smoke/smoke.dart'; 16 import 'package:smoke/smoke.dart';
17 17
18 /// Implementation of [ObjectAccessorService] in use, initialized lazily so it 18 /// Implementation of [ObjectAccessorService] in use, initialized lazily so it
19 /// can be replaced at deployment time with an efficient alternative. 19 /// can be replaced at deployment time with an efficient alternative.
20 ObjectAccessorService objectAccessor = 20 ObjectAccessorService objectAccessor = new ReflectiveObjectAccessorService();
21 new ReflectiveObjectAccessorService();
22 21
23 /// Implementation of [TypeInspectorService] in use, initialized lazily so it 22 /// Implementation of [TypeInspectorService] in use, initialized lazily so it
24 /// can be replaced at deployment time with an efficient alternative. 23 /// can be replaced at deployment time with an efficient alternative.
25 TypeInspectorService typeInspector = 24 TypeInspectorService typeInspector = new ReflectiveTypeInspectorService();
26 new ReflectiveTypeInspectorService();
27 25
28 /// Implementation of [SymbolConverterService] in use, initialized lazily so it 26 /// Implementation of [SymbolConverterService] in use, initialized lazily so it
29 /// can be replaced at deployment time with an efficient alternative. 27 /// can be replaced at deployment time with an efficient alternative.
30 SymbolConverterService symbolConverter = 28 SymbolConverterService symbolConverter = new ReflectiveSymbolConverterService();
31 new ReflectiveSymbolConverterService();
32 29
33 throwNotConfiguredError() { 30 throwNotConfiguredError() {
34 throw new Exception('The "smoke" library has not been configured. ' 31 throw new Exception('The "smoke" library has not been configured. '
35 'Make sure you import and configure one of the implementations (' 32 'Make sure you import and configure one of the implementations ('
36 'package:smoke/mirrors.dart or package:smoke/static.dart).'); 33 'package:smoke/mirrors.dart or package:smoke/static.dart).');
37 } 34 }
OLDNEW
« no previous file with comments | « lib/src/default_transformer.dart ('k') | lib/static.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698