Index: pkg/analyzer/lib/src/fasta/ast_builder.dart |
diff --git a/pkg/analyzer/lib/src/fasta/ast_builder.dart b/pkg/analyzer/lib/src/fasta/ast_builder.dart |
index 524b1fd7e6ed900ea9440fdbf68339721a90a2d0..6f7f95a97f69c147f2ee11a9bf26a21a1b8f60cf 100644 |
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart |
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart |
@@ -986,13 +986,14 @@ class AstBuilder extends ScopeListener { |
stackTrace = catchParameters[1].identifier; |
} |
} |
+ // TODO(brianwilkerson) The parser needs to pass in the comma token. |
push(ast.catchClause( |
onKeyword, |
type, |
catchKeyword, |
catchParameterList?.leftParenthesis, |
exception, |
- null, |
+ stackTrace == null ? null : stackTrace.token.previous, |
stackTrace, |
catchParameterList?.rightParenthesis, |
body)); |