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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 12250002: dart2js: In minified mode shorter getter and setter names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library elements.modelx; 5 library elements.modelx;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 8
9 import 'elements.dart'; 9 import 'elements.dart';
10 import '../../compiler.dart' as api; 10 import '../../compiler.dart' as api;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 return '$kind($holderName#${nameText})'; 255 return '$kind($holderName#${nameText})';
256 } else { 256 } else {
257 return '$kind(${nameText})'; 257 return '$kind(${nameText})';
258 } 258 }
259 } 259 }
260 260
261 String _fixedBackendName = null; 261 String _fixedBackendName = null;
262 bool _isNative = false; 262 bool _isNative = false;
263 bool isNative() => _isNative; 263 bool isNative() => _isNative;
264 bool hasFixedBackendName() => _fixedBackendName != null; 264 bool hasFixedBackendName() => _fixedBackendName != null;
265 bool fieldAccessNeverThrows() => false;
265 String fixedBackendName() => _fixedBackendName; 266 String fixedBackendName() => _fixedBackendName;
266 // Marks this element as a native element. 267 // Marks this element as a native element.
267 void setNative(String name) { 268 void setNative(String name) {
268 _isNative = true; 269 _isNative = true;
269 _fixedBackendName = name; 270 _fixedBackendName = name;
270 } 271 }
271 void setFixedBackendName(String name) { 272 void setFixedBackendName(String name) {
272 _fixedBackendName = name; 273 _fixedBackendName = name;
273 } 274 }
274 275
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 1978
1978 MetadataAnnotation ensureResolved(Compiler compiler) { 1979 MetadataAnnotation ensureResolved(Compiler compiler) {
1979 if (resolutionState == STATE_NOT_STARTED) { 1980 if (resolutionState == STATE_NOT_STARTED) {
1980 compiler.resolver.resolveMetadataAnnotation(this); 1981 compiler.resolver.resolveMetadataAnnotation(this);
1981 } 1982 }
1982 return this; 1983 return this;
1983 } 1984 }
1984 1985
1985 String toString() => 'MetadataAnnotation($value, $resolutionState)'; 1986 String toString() => 'MetadataAnnotation($value, $resolutionState)';
1986 } 1987 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698