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

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

Issue 1700863002: Add a local generic function into the static generic method tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « no previous file | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | 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 'dart:convert'; 7 import 'dart:convert';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after
2493 2493
2494 test_functions() { 2494 test_functions() {
2495 checkLibrary('f() {} g() {}'); 2495 checkLibrary('f() {} g() {}');
2496 } 2496 }
2497 2497
2498 test_generic_gClass_gMethodStatic() { 2498 test_generic_gClass_gMethodStatic() {
2499 resetWithOptions(new AnalysisOptionsImpl()..enableGenericMethods = true); 2499 resetWithOptions(new AnalysisOptionsImpl()..enableGenericMethods = true);
2500 checkLibrary(''' 2500 checkLibrary('''
2501 class C<T, U> { 2501 class C<T, U> {
2502 static void m<V, W>(V v, W w) { 2502 static void m<V, W>(V v, W w) {
2503 void f<X, Y>(V v, W w, X x, Y y) {
2504 }
2503 } 2505 }
2504 } 2506 }
2505 '''); 2507 ''');
2506 } 2508 }
2507 2509
2508 test_getElement_constructor_named() { 2510 test_getElement_constructor_named() {
2509 ConstructorElement original = resolve2(addSource('class C { C.named(); }')) 2511 ConstructorElement original = resolve2(addSource('class C { C.named(); }'))
2510 .getType('C') 2512 .getType('C')
2511 .getNamedConstructor('named'); 2513 .getNamedConstructor('named');
2512 expect(original, isNotNull); 2514 expect(original, isNotNull);
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
3507 fail('Unexpectedly tried to get unlinked summary for $uri'); 3509 fail('Unexpectedly tried to get unlinked summary for $uri');
3508 } 3510 }
3509 return serializedUnit; 3511 return serializedUnit;
3510 } 3512 }
3511 3513
3512 @override 3514 @override
3513 bool hasLibrarySummary(String uri) { 3515 bool hasLibrarySummary(String uri) {
3514 return true; 3516 return true;
3515 } 3517 }
3516 } 3518 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698