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

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

Issue 1061993003: Rename EMPTY_ARRAY to EMPTY_LIST in element model (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
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.resolver.error_verifier; 5 library engine.resolver.error_verifier;
6 6
7 import "dart:math" as math; 7 import "dart:math" as math;
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/src/generated/static_type_analyzer.dart'; 10 import 'package:analyzer/src/generated/static_type_analyzer.dart';
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 for (VariableDeclaration field in fields.variables) { 1572 for (VariableDeclaration field in fields.variables) {
1573 FieldElement element = field.element as FieldElement; 1573 FieldElement element = field.element as FieldElement;
1574 if (element == null) { 1574 if (element == null) {
1575 continue; 1575 continue;
1576 } 1576 }
1577 PropertyAccessorElement getter = element.getter; 1577 PropertyAccessorElement getter = element.getter;
1578 PropertyAccessorElement setter = element.setter; 1578 PropertyAccessorElement setter = element.setter;
1579 SimpleIdentifier fieldName = field.name; 1579 SimpleIdentifier fieldName = field.name;
1580 if (getter != null) { 1580 if (getter != null) {
1581 if (_checkForAllInvalidOverrideErrorCodesForExecutable(getter, 1581 if (_checkForAllInvalidOverrideErrorCodesForExecutable(getter,
1582 ParameterElementImpl.EMPTY_ARRAY, AstNode.EMPTY_LIST, fieldName)) { 1582 ParameterElement.EMPTY_LIST, AstNode.EMPTY_LIST, fieldName)) {
1583 hasProblems = true; 1583 hasProblems = true;
1584 } 1584 }
1585 } 1585 }
1586 if (setter != null) { 1586 if (setter != null) {
1587 if (_checkForAllInvalidOverrideErrorCodesForExecutable( 1587 if (_checkForAllInvalidOverrideErrorCodesForExecutable(
1588 setter, setter.parameters, <AstNode>[fieldName], fieldName)) { 1588 setter, setter.parameters, <AstNode>[fieldName], fieldName)) {
1589 hasProblems = true; 1589 hasProblems = true;
1590 } 1590 }
1591 } 1591 }
1592 } 1592 }
(...skipping 4378 matching lines...) Expand 10 before | Expand all | Expand 10 after
5971 toCheck.add(type.element); 5971 toCheck.add(type.element);
5972 // type arguments 5972 // type arguments
5973 if (type is InterfaceType) { 5973 if (type is InterfaceType) {
5974 InterfaceType interfaceType = type; 5974 InterfaceType interfaceType = type;
5975 for (DartType typeArgument in interfaceType.typeArguments) { 5975 for (DartType typeArgument in interfaceType.typeArguments) {
5976 _addTypeToCheck(typeArgument); 5976 _addTypeToCheck(typeArgument);
5977 } 5977 }
5978 } 5978 }
5979 } 5979 }
5980 } 5980 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698