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

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_ast_test.dart

Issue 2092873002: fix #25794, infer parameter type from default value (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merge remote-tracking branch 'origin/master' into 25794_param_infer Created 4 years, 5 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.src.summary.resynthesize_ast_test; 5 library analyzer.test.src.summary.resynthesize_ast_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/src/dart/element/element.dart'; 9 import 'package:analyzer/src/dart/element/element.dart';
10 import 'package:analyzer/src/generated/engine.dart' 10 import 'package:analyzer/src/generated/engine.dart'
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 } 503 }
504 504
505 @override 505 @override
506 @failingTest 506 @failingTest
507 void test_inferCorrectlyOnMultipleVariablesDeclaredTogether() { 507 void test_inferCorrectlyOnMultipleVariablesDeclaredTogether() {
508 super.test_inferCorrectlyOnMultipleVariablesDeclaredTogether(); 508 super.test_inferCorrectlyOnMultipleVariablesDeclaredTogether();
509 } 509 }
510 510
511 @override 511 @override
512 @failingTest 512 @failingTest
513 void test_inferDefaultFormalParameter() {
514 super.test_inferDefaultFormalParameter();
515 }
516
517 @override
518 @failingTest
513 void test_inferenceInCyclesIsDeterministic() { 519 void test_inferenceInCyclesIsDeterministic() {
514 super.test_inferenceInCyclesIsDeterministic(); 520 super.test_inferenceInCyclesIsDeterministic();
515 } 521 }
516 522
517 @override 523 @override
518 @failingTest 524 @failingTest
519 void test_inferredType_opAssignToProperty_prefixedIdentifier() { 525 void test_inferredType_opAssignToProperty_prefixedIdentifier() {
520 super.test_inferredType_opAssignToProperty_prefixedIdentifier(); 526 super.test_inferredType_opAssignToProperty_prefixedIdentifier();
521 } 527 }
522 528
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 701 }
696 702
697 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); 703 UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource);
698 LinkedLibraryBuilder linkedLibrary = 704 LinkedLibraryBuilder linkedLibrary =
699 prelink(definingUnit, getPart, getImport); 705 prelink(definingUnit, getPart, getImport);
700 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { 706 linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) {
701 _serializeLibrary(resolveRelativeUri(d.uri)); 707 _serializeLibrary(resolveRelativeUri(d.uri));
702 }); 708 });
703 } 709 }
704 } 710 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_elements.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698