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

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

Issue 1782463002: Split resolver_test.dart into smaller files. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
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.src.generated.error_verifier; 5 library analyzer.src.generated.error_verifier;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import "dart:math" as math; 8 import "dart:math" as math;
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 5175 matching lines...) Expand 10 before | Expand all | Expand 10 after
5186 // errorReporter.reportTypeErrorForNode( 5186 // errorReporter.reportTypeErrorForNode(
5187 // StaticTypeWarningCode.RETURN_OF_INVALID_TYPE, 5187 // StaticTypeWarningCode.RETURN_OF_INVALID_TYPE,
5188 // returnExpression, 5188 // returnExpression,
5189 // staticReturnType, 5189 // staticReturnType,
5190 // expectedReturnType, 5190 // expectedReturnType,
5191 // enclosingFunction.getDisplayName()); 5191 // enclosingFunction.getDisplayName());
5192 // return true; 5192 // return true;
5193 } 5193 }
5194 5194
5195 /** 5195 /**
5196 * Check the given [typeReference] and that the [name] is not the reference to 5196 * Check the given [typeReference] and that the [name] is not a reference to
5197 * an instance member. 5197 * an instance member.
5198 * 5198 *
5199 * See [StaticWarningCode.STATIC_ACCESS_TO_INSTANCE_MEMBER]. 5199 * See [StaticWarningCode.STATIC_ACCESS_TO_INSTANCE_MEMBER].
5200 */ 5200 */
5201 bool _checkForStaticAccessToInstanceMember( 5201 bool _checkForStaticAccessToInstanceMember(
5202 ClassElement typeReference, SimpleIdentifier name) { 5202 ClassElement typeReference, SimpleIdentifier name) {
5203 // OK, in comment 5203 // OK, in comment
5204 if (_isInComment) { 5204 if (_isInComment) {
5205 return false; 5205 return false;
5206 } 5206 }
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
6324 class _InvocationCollector extends RecursiveAstVisitor { 6324 class _InvocationCollector extends RecursiveAstVisitor {
6325 final List<String> superCalls = <String>[]; 6325 final List<String> superCalls = <String>[];
6326 6326
6327 @override 6327 @override
6328 visitMethodInvocation(MethodInvocation node) { 6328 visitMethodInvocation(MethodInvocation node) {
6329 if (node.target is SuperExpression) { 6329 if (node.target is SuperExpression) {
6330 superCalls.add(node.methodName.name); 6330 superCalls.add(node.methodName.name);
6331 } 6331 }
6332 } 6332 }
6333 } 6333 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698