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

Side by Side Diff: runtime/lib/mirrors_impl.dart

Issue 2708663002: Fix more lint style issues in runtime patches. (Closed)
Patch Set: Created 3 years, 10 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 | « runtime/lib/internal_patch.dart ('k') | runtime/lib/print_patch.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // VM-specific implementation of the dart:mirrors library. 5 // VM-specific implementation of the dart:mirrors library.
6 6
7 import "dart:collection" show UnmodifiableListView, UnmodifiableMapView;
8 import "dart:_internal" as internal;
9
7 var _dirty = false; 10 var _dirty = false;
8 final _emptyList = new UnmodifiableListView([]); 11 final _emptyList = new UnmodifiableListView([]);
9 12
10 class _InternalMirrorError { 13 class _InternalMirrorError {
11 final String _msg; 14 final String _msg;
12 const _InternalMirrorError(this._msg); 15 const _InternalMirrorError(this._msg);
13 String toString() => _msg; 16 String toString() => _msg;
14 } 17 }
15 18
16 String _n(Symbol symbol) => internal.Symbol.getName(symbol); 19 String _n(Symbol symbol) => internal.Symbol.getName(symbol);
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 } 1682 }
1680 1683
1681 static Type _instantiateType(Type key, List<Type> typeArguments) { 1684 static Type _instantiateType(Type key, List<Type> typeArguments) {
1682 if (typeArguments.isEmpty) { 1685 if (typeArguments.isEmpty) {
1683 throw new ArgumentError.value( 1686 throw new ArgumentError.value(
1684 typeArguments, 'typeArguments', 'Type arguments list cannot be empty.'); 1687 typeArguments, 'typeArguments', 'Type arguments list cannot be empty.');
1685 } 1688 }
1686 return instantiateGenericType(key, typeArguments.toList(growable: false)); 1689 return instantiateGenericType(key, typeArguments.toList(growable: false));
1687 } 1690 }
1688 } 1691 }
OLDNEW
« no previous file with comments | « runtime/lib/internal_patch.dart ('k') | runtime/lib/print_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698