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

Side by Side Diff: pkg/analyzer/lib/src/generated/element_handle.dart

Issue 1364583006: Add Element.nameLength getter and specialize it for LibraryElement. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
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 library engine.element_handle; 5 library engine.element_handle;
6 6
7 import 'ast.dart'; 7 import 'ast.dart';
8 import 'element.dart'; 8 import 'element.dart';
9 import 'engine.dart'; 9 import 'engine.dart';
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 @override 364 @override
365 ElementLocation get location => _location; 365 ElementLocation get location => _location;
366 366
367 @override 367 @override
368 List<ElementAnnotation> get metadata => actualElement.metadata; 368 List<ElementAnnotation> get metadata => actualElement.metadata;
369 369
370 @override 370 @override
371 String get name => actualElement.name; 371 String get name => actualElement.name;
372 372
373 @override 373 @override
374 int get nameLength => actualElement.nameLength;
375
376 @override
374 int get nameOffset => actualElement.nameOffset; 377 int get nameOffset => actualElement.nameOffset;
375 378
376 @deprecated 379 @deprecated
377 @override 380 @override
378 AstNode get node => computeNode(); 381 AstNode get node => computeNode();
379 382
380 @override 383 @override
381 Source get source => actualElement.source; 384 Source get source => actualElement.source;
382 385
383 @override 386 @override
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 } 1116 }
1114 1117
1115 /** 1118 /**
1116 * TODO(scheglov) invalid implementation 1119 * TODO(scheglov) invalid implementation
1117 */ 1120 */
1118 class WeakReference<T> { 1121 class WeakReference<T> {
1119 final T value; 1122 final T value;
1120 WeakReference(this.value); 1123 WeakReference(this.value);
1121 T get() => value; 1124 T get() => value;
1122 } 1125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698