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

Side by Side Diff: pkg/analyzer/lib/dart/ast/ast.dart

Issue 1633233002: Stop creating duplicate enum members when the element model has already been built (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')
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 library analyzer.dart.ast.ast; 5 library analyzer.dart.ast.ast;
6 6
7 import 'package:analyzer/dart/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/dart/element/type.dart'; 8 import 'package:analyzer/dart/element/type.dart';
9 import 'package:analyzer/src/dart/ast/ast.dart'; 9 import 'package:analyzer/src/dart/ast/ast.dart';
10 import 'package:analyzer/src/dart/element/element.dart' show AuxiliaryElements; 10 import 'package:analyzer/src/dart/element/element.dart' show AuxiliaryElements;
(...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after
2849 SimpleIdentifier name, 2849 SimpleIdentifier name,
2850 Token leftBracket, 2850 Token leftBracket,
2851 List<EnumConstantDeclaration> constants, 2851 List<EnumConstantDeclaration> constants,
2852 Token rightBracket) = EnumDeclarationImpl; 2852 Token rightBracket) = EnumDeclarationImpl;
2853 2853
2854 /** 2854 /**
2855 * Return the enumeration constants being declared. 2855 * Return the enumeration constants being declared.
2856 */ 2856 */
2857 NodeList<EnumConstantDeclaration> get constants; 2857 NodeList<EnumConstantDeclaration> get constants;
2858 2858
2859 @override
2860 ClassElement get element;
2861
2859 /** 2862 /**
2860 * Return the 'enum' keyword. 2863 * Return the 'enum' keyword.
2861 */ 2864 */
2862 Token get enumKeyword; 2865 Token get enumKeyword;
2863 2866
2864 /** 2867 /**
2865 * Set the 'enum' keyword to the given [token]. 2868 * Set the 'enum' keyword to the given [token].
2866 */ 2869 */
2867 void set enumKeyword(Token token); 2870 void set enumKeyword(Token token);
2868 2871
(...skipping 5107 matching lines...) Expand 10 before | Expand all | Expand 10 after
7976 /** 7979 /**
7977 * Return the 'yield' keyword. 7980 * Return the 'yield' keyword.
7978 */ 7981 */
7979 Token get yieldKeyword; 7982 Token get yieldKeyword;
7980 7983
7981 /** 7984 /**
7982 * Return the 'yield' keyword to the given [token]. 7985 * Return the 'yield' keyword to the given [token].
7983 */ 7986 */
7984 void set yieldKeyword(Token token); 7987 void set yieldKeyword(Token token);
7985 } 7988 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698