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

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

Issue 2565173008: Fix for resynthesizing invalid @functionName() annotations. (Closed)
Patch Set: Created 4 years 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/test/src/dart/analysis/driver_test.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 4047 matching lines...) Expand 10 before | Expand all | Expand 10 after
4058 4058
4059 test_metadata_functionTypedFormalParameter_withDefault() { 4059 test_metadata_functionTypedFormalParameter_withDefault() {
4060 checkLibrary('const a = null; f([@a g() = null]) {}'); 4060 checkLibrary('const a = null; f([@a g() = null]) {}');
4061 } 4061 }
4062 4062
4063 test_metadata_importDirective() { 4063 test_metadata_importDirective() {
4064 addLibrarySource('/foo.dart', 'const b = null;'); 4064 addLibrarySource('/foo.dart', 'const b = null;');
4065 checkLibrary('@a import "foo.dart"; const a = b;'); 4065 checkLibrary('@a import "foo.dart"; const a = b;');
4066 } 4066 }
4067 4067
4068 test_metadata_invalid_classDeclaration() {
4069 checkLibrary('f(_) {} @f(42) class C {}');
4070 }
4071
4068 test_metadata_libraryDirective() { 4072 test_metadata_libraryDirective() {
4069 checkLibrary('@a library L; const a = null;'); 4073 checkLibrary('@a library L; const a = null;');
4070 } 4074 }
4071 4075
4072 test_metadata_methodDeclaration_getter() { 4076 test_metadata_methodDeclaration_getter() {
4073 checkLibrary('const a = null; class C { @a get m => null; }'); 4077 checkLibrary('const a = null; class C { @a get m => null; }');
4074 } 4078 }
4075 4079
4076 test_metadata_methodDeclaration_method() { 4080 test_metadata_methodDeclaration_method() {
4077 checkLibrary('const a = null; class C { @a m() {} }'); 4081 checkLibrary('const a = null; class C { @a m() {} }');
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
4836 fail('Unexpectedly tried to get unlinked summary for $uri'); 4840 fail('Unexpectedly tried to get unlinked summary for $uri');
4837 } 4841 }
4838 return serializedUnit; 4842 return serializedUnit;
4839 } 4843 }
4840 4844
4841 @override 4845 @override
4842 bool hasLibrarySummary(String uri) { 4846 bool hasLibrarySummary(String uri) {
4843 return true; 4847 return true;
4844 } 4848 }
4845 } 4849 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/dart/analysis/driver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698