From 034725f1f5dfecc639495eeabf6585786137abef Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Tue, 1 May 2018 13:10:13 -0700 Subject: [PATCH] Fix the type of _convertStatementsBoundAttribute. The use of _convertStatementsBoundAttribute in _convertAttributes has a type error that the analyzer has been failing to detect due to https://github.com/dart-lang/sdk/issues/32305. In order to fix this analyzer bug, we need to first fix any type errors that exist in the wild. This change fixes the type of _convertStatementsBoundAttribute to match the type expected at the use site, and adds the necessary "as" cast. --- angular_analyzer_plugin/lib/src/converter.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/angular_analyzer_plugin/lib/src/converter.dart b/angular_analyzer_plugin/lib/src/converter.dart index f3cb8b3b..aa1b30f4 100644 --- a/angular_analyzer_plugin/lib/src/converter.dart +++ b/angular_analyzer_plugin/lib/src/converter.dart @@ -392,7 +392,8 @@ class HtmlTreeConverter { } StatementsBoundAttribute _convertStatementsBoundAttribute( - ParsedEventAst ast) { + EventAst eventAst) { + final ast = eventAst as ParsedEventAst; final prefixToken = ast.prefixToken; final nameToken = ast.nameToken; final suffixToken = ast.suffixToken;