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

Side by Side Diff: pkg/front_end/lib/src/fasta/analyzer/element_store.dart

Issue 2675603002: Reduce strong mode errors and warnings (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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 fasta.analyzer.element_store; 5 library fasta.analyzer.element_store;
6 6
7 import 'package:kernel/analyzer/loader.dart' show 7 import 'package:kernel/analyzer/loader.dart' show
8 ReferenceLevelLoader; 8 ReferenceLevelLoader;
9 9
10 import 'package:kernel/ast.dart'; 10 import 'package:kernel/ast.dart';
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 ? cls.cls.constructors.first 112 ? cls.cls.constructors.first
113 : cls.cls.constructors.firstWhere( 113 : cls.cls.constructors.firstWhere(
114 (Constructor c) => c.name.name == constructorName); 114 (Constructor c) => c.name.name == constructorName);
115 return constructor; 115 return constructor;
116 } 116 }
117 117
118 Library getLibraryReference(LibraryElement element) { 118 Library getLibraryReference(LibraryElement element) {
119 return internalError("not supported."); 119 return internalError("not supported.");
120 } 120 }
121 121
122 Class getClassReference(KernelClassElement cls) => cls.builder.cls; 122 Class getClassReference(covariant KernelClassElement cls) => cls.builder.cls;
123 123
124 Member getMemberReference(Element element) { 124 Member getMemberReference(Element element) {
125 if (element is KernelFunctionElement) { 125 if (element is KernelFunctionElement) {
126 return element.procedure; 126 return element.procedure;
127 } else { 127 } else {
128 return internalError("getMemberReference(${element.runtimeType})"); 128 return internalError("getMemberReference(${element.runtimeType})");
129 } 129 }
130 } 130 }
131 131
132 Class getRootClassReference() => internalError("not supported."); 132 Class getRootClassReference() => internalError("not supported.");
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 } 286 }
287 } 287 }
288 288
289 class KernelInterfaceType extends MockInterfaceType { 289 class KernelInterfaceType extends MockInterfaceType {
290 final KernelClassElement element; 290 final KernelClassElement element;
291 291
292 KernelInterfaceType(this.element); 292 KernelInterfaceType(this.element);
293 293
294 List<analyzer.DartType> get typeArguments => const <analyzer.DartType>[]; 294 List<analyzer.DartType> get typeArguments => const <analyzer.DartType>[];
295 } 295 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698