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

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

Issue 1584653007: Issue 25504. Fix for ignoring expression bodies in incremental resolver. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.incremental_resolver_test; 5 library analyzer.test.generated.incremental_resolver_test;
6 6
7 import 'package:analyzer/dart/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/src/context/cache.dart'; 8 import 'package:analyzer/src/context/cache.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/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 3929 matching lines...) Expand 10 before | Expand all | Expand 10 after
3940 '''); 3940 ''');
3941 _updateAndValidate( 3941 _updateAndValidate(
3942 r''' 3942 r'''
3943 class A { 3943 class A {
3944 final f = (() => 2)(); 3944 final f = (() => 2)();
3945 } 3945 }
3946 ''', 3946 ''',
3947 expectedSuccess: false); 3947 expectedSuccess: false);
3948 } 3948 }
3949 3949
3950 void test_false_expressionBody2() {
3951 _resolveUnit(r'''
3952 class A {
3953 int m() => 10 * 10;
3954 }
3955 ''');
3956 _updateAndValidate(
3957 r'''
3958 class A {
3959 int m() => 10 * 100;
3960 }
3961 ''',
3962 expectedSuccess: false);
3963 }
3964
3950 void test_false_topLevelFunction_name() { 3965 void test_false_topLevelFunction_name() {
3951 _resolveUnit(r''' 3966 _resolveUnit(r'''
3952 a() {} 3967 a() {}
3953 b() {} 3968 b() {}
3954 '''); 3969 ''');
3955 _updateAndValidate( 3970 _updateAndValidate(
3956 r''' 3971 r'''
3957 a() {} 3972 a() {}
3958 bb() {} 3973 bb() {}
3959 ''', 3974 ''',
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
5059 @override 5074 @override
5060 void logException(Object exception, [Object stackTrace]) { 5075 void logException(Object exception, [Object stackTrace]) {
5061 hasError = true; 5076 hasError = true;
5062 } 5077 }
5063 5078
5064 @override 5079 @override
5065 logging.LoggingTimer startTimer() { 5080 logging.LoggingTimer startTimer() {
5066 return new logging.LoggingTimer(this); 5081 return new logging.LoggingTimer(this);
5067 } 5082 }
5068 } 5083 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698