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

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

Issue 1129143003: Store elements in the constant eval dependency graph rather than AST nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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) 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 8661 matching lines...) Expand 10 before | Expand all | Expand 10 after
8672 } 8672 }
8673 8673
8674 /** 8674 /**
8675 * Interface used by elements that might represent constant variables. 8675 * Interface used by elements that might represent constant variables.
8676 * 8676 *
8677 * This class may be used as a mixin in the case where [constInitializer] is 8677 * This class may be used as a mixin in the case where [constInitializer] is
8678 * known to return null. 8678 * known to return null.
8679 * 8679 *
8680 * This class is not intended to be part of the public API for analyzer. 8680 * This class is not intended to be part of the public API for analyzer.
8681 */ 8681 */
8682 abstract class PotentiallyConstVariableElement { 8682 abstract class PotentiallyConstVariableElement implements VariableElementImpl {
8683 /** 8683 /**
8684 * If this element represents a constant variable, and it has an initializer, 8684 * If this element represents a constant variable, and it has an initializer,
8685 * a copy of the initializer for the constant. Otherwise `null`. 8685 * a copy of the initializer for the constant. Otherwise `null`.
8686 * 8686 *
8687 * Note that in correct Dart code, all constant variables must have 8687 * Note that in correct Dart code, all constant variables must have
8688 * initializers. However, analyzer also needs to handle incorrect Dart code, 8688 * initializers. However, analyzer also needs to handle incorrect Dart code,
8689 * in which case there might be some constant variables that lack 8689 * in which case there might be some constant variables that lack
8690 * initializers. 8690 * initializers.
8691 */ 8691 */
8692 Expression get constantInitializer => null; 8692 Expression get constantInitializer => null;
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
10358 10358
10359 @override 10359 @override
10360 void visitElement(Element element) { 10360 void visitElement(Element element) {
10361 int offset = element.nameOffset; 10361 int offset = element.nameOffset;
10362 if (offset != -1) { 10362 if (offset != -1) {
10363 map[offset] = element; 10363 map[offset] = element;
10364 } 10364 }
10365 super.visitElement(element); 10365 super.visitElement(element);
10366 } 10366 }
10367 } 10367 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/constant.dart ('k') | pkg/analyzer/test/generated/all_the_rest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698