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

Unified Diff: pkg/analyzer/lib/src/summary/summarize_ast.dart

Issue 2196363003: Make analyzer strong-mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/analyzer/lib/src/task/inputs.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/summarize_ast.dart
diff --git a/pkg/analyzer/lib/src/summary/summarize_ast.dart b/pkg/analyzer/lib/src/summary/summarize_ast.dart
index c2a625bf29f69a2ab264da555505f6866af128cf..eeaef9dbf4fd0df31722019f4a1dfaa837040991 100644
--- a/pkg/analyzer/lib/src/summary/summarize_ast.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_ast.dart
@@ -641,7 +641,7 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor {
bool isSemanticallyStatic = isTopLevel || isDeclaredStatic;
if (formalParameters != null) {
b.parameters = formalParameters.parameters
- .map((FormalParameter p) => p.accept(this))
+ .map((FormalParameter p) => p.accept(this) as UnlinkedParamBuilder)
.toList();
if (!isSemanticallyStatic) {
for (int i = 0; i < formalParameters.parameters.length; i++) {
@@ -751,7 +751,7 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor {
b.type = serializedReturnType;
}
b.parameters = parameters.parameters
- .map((FormalParameter p) => p.accept(this))
+ .map((FormalParameter p) => p.accept(this) as UnlinkedParamBuilder)
.toList();
}
@@ -1042,7 +1042,7 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor {
b.nameOffset = node.returnType.offset;
}
b.parameters = node.parameters.parameters
- .map((FormalParameter p) => p.accept(this))
+ .map((FormalParameter p) => p.accept(this) as UnlinkedParamBuilder)
.toList();
b.kind = UnlinkedExecutableKind.constructor;
if (node.factoryKeyword != null) {
@@ -1235,7 +1235,7 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor {
b.returnType = serializedReturnType;
}
b.parameters = node.parameters.parameters
- .map((FormalParameter p) => p.accept(this))
+ .map((FormalParameter p) => p.accept(this) as UnlinkedParamBuilder)
.toList();
b.documentationComment = serializeDocumentation(node.documentationComment);
b.annotations = serializeAnnotations(node.metadata);
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/analyzer/lib/src/task/inputs.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698