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

Side by Side Diff: pkg/analyzer/test/generated/non_error_resolver_test.dart

Issue 2643693002: Fix language/bad_constructor_test in dartk and analyzer. (Closed)
Patch Set: Remove extra blank line Created 3 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
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.test.generated.non_error_resolver_test; 5 library analyzer.test.generated.non_error_resolver_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
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 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 m() {} 1237 m() {}
1238 } 1238 }
1239 class B extends A { 1239 class B extends A {
1240 m(); 1240 m();
1241 }'''); 1241 }''');
1242 await computeAnalysisResult(source); 1242 await computeAnalysisResult(source);
1243 assertNoErrors(source); 1243 assertNoErrors(source);
1244 verify([source]); 1244 verify([source]);
1245 } 1245 }
1246 1246
1247 test_conflictingConstructorNameAndMember_setter() async {
1248 Source source = addSource(r'''
1249 class A {
1250 A.x() {}
1251 set x(_) {}
1252 }''');
1253 await computeAnalysisResult(source);
1254 assertNoErrors(source);
1255 verify([source]);
1256 }
1257
1247 test_conflictingInstanceGetterAndSuperclassMember_instance() async { 1258 test_conflictingInstanceGetterAndSuperclassMember_instance() async {
1248 Source source = addSource(r''' 1259 Source source = addSource(r'''
1249 class A { 1260 class A {
1250 get v => 0; 1261 get v => 0;
1251 } 1262 }
1252 class B extends A { 1263 class B extends A {
1253 get v => 1; 1264 get v => 1;
1254 }'''); 1265 }''');
1255 await computeAnalysisResult(source); 1266 await computeAnalysisResult(source);
1256 assertNoErrors(source); 1267 assertNoErrors(source);
(...skipping 4981 matching lines...) Expand 10 before | Expand all | Expand 10 after
6238 } 6249 }
6239 6250
6240 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async { 6251 Future<Null> _check_wrongNumberOfParametersForOperator1(String name) async {
6241 await _check_wrongNumberOfParametersForOperator(name, "a"); 6252 await _check_wrongNumberOfParametersForOperator(name, "a");
6242 } 6253 }
6243 6254
6244 Future<CompilationUnit> _getResolvedLibraryUnit(Source source) async { 6255 Future<CompilationUnit> _getResolvedLibraryUnit(Source source) async {
6245 return analysisContext.getResolvedCompilationUnit2(source, source); 6256 return analysisContext.getResolvedCompilationUnit2(source, source);
6246 } 6257 }
6247 } 6258 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/compile_time_error_code_test.dart ('k') | pkg/kernel/lib/analyzer/ast_from_analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698