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

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

Issue 1052413003: Make two getters public (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element_handle.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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 10253 matching lines...) Expand 10 before | Expand all | Expand 10 after
10264 bool get isConst; 10264 bool get isConst;
10265 10265
10266 /** 10266 /**
10267 * Return `true` if this variable was declared with the 'final' modifier. 10267 * Return `true` if this variable was declared with the 'final' modifier.
10268 * Variables that are declared with the 'const' modifier will return `false` 10268 * Variables that are declared with the 'const' modifier will return `false`
10269 * even though they are implicitly final. 10269 * even though they are implicitly final.
10270 */ 10270 */
10271 bool get isFinal; 10271 bool get isFinal;
10272 10272
10273 /** 10273 /**
10274 * Return `true` if this variable is potentially mutated somewhere in a
10275 * closure. This information is only available for local variables (including
10276 * parameters) and only after the compilation unit containing the variable has
10277 * been resolved.
10278 */
10279 bool get isPotentiallyMutatedInClosure;
10280
10281 /**
10282 * Return `true` if this variable is potentially mutated somewhere in its
10283 * scope. This information is only available for local variables (including
10284 * parameters) and only after the compilation unit containing the variable has
10285 * been resolved.
10286 */
10287 bool get isPotentiallyMutatedInScope;
10288
10289 /**
10274 * Return the resolved [VariableDeclaration] node that declares this 10290 * Return the resolved [VariableDeclaration] node that declares this
10275 * [VariableElement]. 10291 * [VariableElement].
10276 * 10292 *
10277 * This method is expensive, because resolved AST might be evicted from cache, 10293 * This method is expensive, because resolved AST might be evicted from cache,
10278 * so parsing and resolving will be performed. 10294 * so parsing and resolving will be performed.
10279 */ 10295 */
10280 @override 10296 @override
10281 VariableDeclaration get node; 10297 VariableDeclaration get node;
10282 10298
10283 /** 10299 /**
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
10364 } 10380 }
10365 this._initializer = function; 10381 this._initializer = function;
10366 } 10382 }
10367 10383
10368 @override 10384 @override
10369 bool get isConst => hasModifier(Modifier.CONST); 10385 bool get isConst => hasModifier(Modifier.CONST);
10370 10386
10371 @override 10387 @override
10372 bool get isFinal => hasModifier(Modifier.FINAL); 10388 bool get isFinal => hasModifier(Modifier.FINAL);
10373 10389
10374 /** 10390 @override
10375 * Return `true` if this variable is potentially mutated somewhere in a
10376 * closure. This information is only available for local variables (including
10377 * parameters) and only after the compilation unit containing the variable has
10378 * been resolved.
10379 */
10380 bool get isPotentiallyMutatedInClosure => false; 10391 bool get isPotentiallyMutatedInClosure => false;
10381 10392
10382 /** 10393 @override
10383 * Return `true` if this variable is potentially mutated somewhere in its
10384 * scope. This information is only available for local variables (including
10385 * parameters) and only after the compilation unit containing the variable has
10386 * been resolved.
10387 */
10388 bool get isPotentiallyMutatedInScope => false; 10394 bool get isPotentiallyMutatedInScope => false;
10389 10395
10390 @override 10396 @override
10391 VariableDeclaration get node => 10397 VariableDeclaration get node =>
10392 getNodeMatching((node) => node is VariableDeclaration); 10398 getNodeMatching((node) => node is VariableDeclaration);
10393 10399
10394 @override 10400 @override
10395 void appendTo(StringBuffer buffer) { 10401 void appendTo(StringBuffer buffer) {
10396 buffer.write(type); 10402 buffer.write(type);
10397 buffer.write(" "); 10403 buffer.write(" ");
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
10430 // return getBaseElement().getInitializer(); 10436 // return getBaseElement().getInitializer();
10431 } 10437 }
10432 10438
10433 @override 10439 @override
10434 bool get isConst => baseElement.isConst; 10440 bool get isConst => baseElement.isConst;
10435 10441
10436 @override 10442 @override
10437 bool get isFinal => baseElement.isFinal; 10443 bool get isFinal => baseElement.isFinal;
10438 10444
10439 @override 10445 @override
10446 bool get isPotentiallyMutatedInClosure =>
10447 baseElement.isPotentiallyMutatedInClosure;
10448
10449 @override
10450 bool get isPotentiallyMutatedInScope =>
10451 baseElement.isPotentiallyMutatedInScope;
10452
10453 @override
10440 VariableDeclaration get node => baseElement.node; 10454 VariableDeclaration get node => baseElement.node;
10441 10455
10442 @override 10456 @override
10443 DartType get type => substituteFor(baseElement.type); 10457 DartType get type => substituteFor(baseElement.type);
10444 10458
10445 @override 10459 @override
10446 void visitChildren(ElementVisitor visitor) { 10460 void visitChildren(ElementVisitor visitor) {
10447 // TODO(brianwilkerson) We need to finish implementing the accessors used 10461 // TODO(brianwilkerson) We need to finish implementing the accessors used
10448 // below so that we can safely invoke them. 10462 // below so that we can safely invoke them.
10449 super.visitChildren(visitor); 10463 super.visitChildren(visitor);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
10510 // void <: void (by reflexivity) 10524 // void <: void (by reflexivity)
10511 // bottom <: void (as bottom is a subtype of all types). 10525 // bottom <: void (as bottom is a subtype of all types).
10512 // void <: dynamic (as dynamic is a supertype of all types) 10526 // void <: dynamic (as dynamic is a supertype of all types)
10513 return identical(type, this) || type.isDynamic; 10527 return identical(type, this) || type.isDynamic;
10514 } 10528 }
10515 10529
10516 @override 10530 @override
10517 VoidTypeImpl substitute2( 10531 VoidTypeImpl substitute2(
10518 List<DartType> argumentTypes, List<DartType> parameterTypes) => this; 10532 List<DartType> argumentTypes, List<DartType> parameterTypes) => this;
10519 } 10533 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element_handle.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698