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

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

Issue 2675603002: Reduce strong mode errors and warnings (Closed)
Patch Set: don't override isAbstract, it's already defined in ModifierBuilder 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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/analyzer/element_store.dart
diff --git a/pkg/front_end/lib/src/fasta/analyzer/element_store.dart b/pkg/front_end/lib/src/fasta/analyzer/element_store.dart
index 2aa783844c1721c59937dc79984f8e3c0a8adf77..27779ae45aed93876c1515e7e0abc251fd07803a 100644
--- a/pkg/front_end/lib/src/fasta/analyzer/element_store.dart
+++ b/pkg/front_end/lib/src/fasta/analyzer/element_store.dart
@@ -119,7 +119,7 @@ class ElementStoreImplementation implements ElementStore {
return internalError("not supported.");
}
- Class getClassReference(KernelClassElement cls) => cls.builder.cls;
+ Class getClassReference(covariant KernelClassElement cls) => cls.builder.cls;
Member getMemberReference(Element element) {
if (element is KernelFunctionElement) {
@@ -258,6 +258,12 @@ class AnalyzerLocalVariableElemment extends MockElement with Builder
bool get isConst => false; // TODO(ahe): implement this.
analyzer.VariableDeclaration get target => variable;
+
+ get type => null;
+
+ get constantValue => internalError("not supported.");
+
+ computeConstantValue() => internalError("not supported.");
}
/// Both an [Element] and [Builder] to using memory to store local elements in

Powered by Google App Engine
This is Rietveld 408576698