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

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

Issue 2663063004: Don't resolve FieldFormalParameter field if not in constructor. (Closed)
Patch Set: Created 3 years, 10 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/error_verifier.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 test.src.serialization.elements_test; 5 library test.src.serialization.elements_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; 8 import 'package:analyzer/dart/ast/standard_resolution_map.dart';
9 import 'package:analyzer/dart/constant/value.dart'; 9 import 'package:analyzer/dart/constant/value.dart';
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 3891 matching lines...) Expand 10 before | Expand all | Expand 10 after
3902 3902
3903 test_invalid_setterParameter_fieldFormalParameter() { 3903 test_invalid_setterParameter_fieldFormalParameter() {
3904 checkLibrary(''' 3904 checkLibrary('''
3905 class C { 3905 class C {
3906 int foo; 3906 int foo;
3907 void set bar(this.foo) {} 3907 void set bar(this.foo) {}
3908 } 3908 }
3909 '''); 3909 ''');
3910 } 3910 }
3911 3911
3912 test_invalid_setterParameter_fieldFormalParameter_self() {
3913 checkLibrary('''
3914 class C {
3915 set x(this.x) {}
3916 }
3917 ''');
3918 }
3919
3912 test_library() { 3920 test_library() {
3913 checkLibrary(''); 3921 checkLibrary('');
3914 } 3922 }
3915 3923
3916 test_library_documented() { 3924 test_library_documented() {
3917 checkLibrary(''' 3925 checkLibrary('''
3918 // Extra comment so doc comment offset != 0 3926 // Extra comment so doc comment offset != 0
3919 /** 3927 /**
3920 * Docs 3928 * Docs
3921 */ 3929 */
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
5117 fail('Unexpectedly tried to get unlinked summary for $uri'); 5125 fail('Unexpectedly tried to get unlinked summary for $uri');
5118 } 5126 }
5119 return serializedUnit; 5127 return serializedUnit;
5120 } 5128 }
5121 5129
5122 @override 5130 @override
5123 bool hasLibrarySummary(String uri) { 5131 bool hasLibrarySummary(String uri) {
5124 return true; 5132 return true;
5125 } 5133 }
5126 } 5134 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698