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

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

Issue 1608123002: Fix the return type of _TypeRefValidator. (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 | « no previous file | 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 analyzer.test.src.summary.summary_test; 5 library analyzer.test.src.summary.summary_test;
6 6
7 import 'package:analyzer/analyzer.dart'; 7 import 'package:analyzer/analyzer.dart';
8 import 'package:analyzer/dart/ast/ast.dart'; 8 import 'package:analyzer/dart/ast/ast.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 parser.parseGenericMethods = true; 114 parser.parseGenericMethods = true;
115 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize()); 115 CompilationUnit unit = parser.parseCompilationUnit(scanner.tokenize());
116 UnlinkedPublicNamespace namespace = new UnlinkedPublicNamespace.fromBuffer( 116 UnlinkedPublicNamespace namespace = new UnlinkedPublicNamespace.fromBuffer(
117 public_namespace.computePublicNamespace(unit).toBuffer()); 117 public_namespace.computePublicNamespace(unit).toBuffer());
118 return namespace; 118 return namespace;
119 } 119 }
120 120
121 /** 121 /**
122 * Type of a function that validates an [TypeRef]. 122 * Type of a function that validates an [TypeRef].
123 */ 123 */
124 typedef bool _TypeRefValidator(TypeRef unlinkedTypeRef); 124 typedef void _TypeRefValidator(TypeRef unlinkedTypeRef);
125 125
126 /** 126 /**
127 * Override of [SummaryTest] which verifies the correctness of the prelinker by 127 * Override of [SummaryTest] which verifies the correctness of the prelinker by
128 * creating summaries from the element model, discarding their prelinked 128 * creating summaries from the element model, discarding their prelinked
129 * information, and then recreating it using the prelinker. 129 * information, and then recreating it using the prelinker.
130 */ 130 */
131 @reflectiveTest 131 @reflectiveTest
132 class PrelinkerTest extends SummarizeElementsTest { 132 class PrelinkerTest extends SummarizeElementsTest {
133 final Map<String, UnlinkedPublicNamespace> uriToPublicNamespace = 133 final Map<String, UnlinkedPublicNamespace> uriToPublicNamespace =
134 <String, UnlinkedPublicNamespace>{}; 134 <String, UnlinkedPublicNamespace>{};
(...skipping 3982 matching lines...) Expand 10 before | Expand all | Expand 10 after
4117 CompilationUnit _parseText(String text) { 4117 CompilationUnit _parseText(String text) {
4118 CharSequenceReader reader = new CharSequenceReader(text); 4118 CharSequenceReader reader = new CharSequenceReader(text);
4119 Scanner scanner = 4119 Scanner scanner =
4120 new Scanner(null, reader, AnalysisErrorListener.NULL_LISTENER); 4120 new Scanner(null, reader, AnalysisErrorListener.NULL_LISTENER);
4121 Token token = scanner.tokenize(); 4121 Token token = scanner.tokenize();
4122 Parser parser = new Parser(null, AnalysisErrorListener.NULL_LISTENER); 4122 Parser parser = new Parser(null, AnalysisErrorListener.NULL_LISTENER);
4123 parser.parseGenericMethods = true; 4123 parser.parseGenericMethods = true;
4124 return parser.parseCompilationUnit(token); 4124 return parser.parseCompilationUnit(token);
4125 } 4125 }
4126 } 4126 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698