| OLD | NEW |
| 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.src.generated.resolver; | 5 library analyzer.src.generated.resolver; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 10 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| (...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1707 * | 1707 * |
| 1708 * @param errors the errors that need to be reported | 1708 * @param errors the errors that need to be reported |
| 1709 * @param errorCode the error code to be used | 1709 * @param errorCode the error code to be used |
| 1710 */ | 1710 */ |
| 1711 void _reportErrors(List<AnalysisError> errors, ErrorCode errorCode) { | 1711 void _reportErrors(List<AnalysisError> errors, ErrorCode errorCode) { |
| 1712 int length = errors.length; | 1712 int length = errors.length; |
| 1713 for (int i = 0; i < length; i++) { | 1713 for (int i = 0; i < length; i++) { |
| 1714 AnalysisError data = errors[i]; | 1714 AnalysisError data = errors[i]; |
| 1715 ErrorCode dataErrorCode = data.errorCode; | 1715 ErrorCode dataErrorCode = data.errorCode; |
| 1716 if (identical(dataErrorCode, | 1716 if (identical(dataErrorCode, |
| 1717 CompileTimeErrorCode.CONST_EVAL_THROWS_ASSERT_FALSE) || |
| 1718 identical(dataErrorCode, |
| 1719 CompileTimeErrorCode.CONST_EVAL_THROWS_ASSERT_NOT_BOOL) || |
| 1720 identical(dataErrorCode, |
| 1717 CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION) || | 1721 CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION) || |
| 1718 identical( | 1722 identical( |
| 1719 dataErrorCode, CompileTimeErrorCode.CONST_EVAL_THROWS_IDBZE) || | 1723 dataErrorCode, CompileTimeErrorCode.CONST_EVAL_THROWS_IDBZE) || |
| 1720 identical(dataErrorCode, | 1724 identical(dataErrorCode, |
| 1721 CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL_NUM_STRING) || | 1725 CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL_NUM_STRING) || |
| 1722 identical(dataErrorCode, CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL) || | 1726 identical(dataErrorCode, CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL) || |
| 1723 identical(dataErrorCode, CompileTimeErrorCode.CONST_EVAL_TYPE_INT) || | 1727 identical(dataErrorCode, CompileTimeErrorCode.CONST_EVAL_TYPE_INT) || |
| 1724 identical(dataErrorCode, CompileTimeErrorCode.CONST_EVAL_TYPE_NUM) || | 1728 identical(dataErrorCode, CompileTimeErrorCode.CONST_EVAL_TYPE_NUM) || |
| 1725 identical(dataErrorCode, | 1729 identical(dataErrorCode, |
| 1726 CompileTimeErrorCode.RECURSIVE_COMPILE_TIME_CONSTANT) || | 1730 CompileTimeErrorCode.RECURSIVE_COMPILE_TIME_CONSTANT) || |
| (...skipping 8937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10664 return null; | 10668 return null; |
| 10665 } | 10669 } |
| 10666 if (identical(node.staticElement, variable)) { | 10670 if (identical(node.staticElement, variable)) { |
| 10667 if (node.inSetterContext()) { | 10671 if (node.inSetterContext()) { |
| 10668 result = true; | 10672 result = true; |
| 10669 } | 10673 } |
| 10670 } | 10674 } |
| 10671 return null; | 10675 return null; |
| 10672 } | 10676 } |
| 10673 } | 10677 } |
| OLD | NEW |