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

Unified Diff: pkg/compiler/lib/src/tree/nodes.dart

Issue 1971193002: Patches to support Dart VM patch files in dart2js. (Closed) Base URL: sso://user/ahe/dart-sdk@master
Patch Set: Created 4 years, 6 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/compiler/lib/src/tokens/keyword.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tree/nodes.dart
diff --git a/pkg/compiler/lib/src/tree/nodes.dart b/pkg/compiler/lib/src/tree/nodes.dart
index 9335fef859d950573231a6ffac2c9611bc51107a..1a607bac1d26b052e263a4aa240d9be555da8759 100644
--- a/pkg/compiler/lib/src/tree/nodes.dart
+++ b/pkg/compiler/lib/src/tree/nodes.dart
@@ -2976,16 +2976,17 @@ class CatchBlock extends Node {
Node get exception {
if (formals == null || formals.nodes.isEmpty) return null;
- VariableDefinitions declarations = formals.nodes.head;
- return declarations.definitions.nodes.head;
+ VariableDefinitions declarations =
+ formals.nodes.head.asVariableDefinitions();
+ return declarations?.definitions?.nodes?.head;
}
Node get trace {
if (formals == null || formals.nodes.isEmpty) return null;
Link<Node> declarations = formals.nodes.tail;
if (declarations.isEmpty) return null;
- VariableDefinitions head = declarations.head;
- return head.definitions.nodes.head;
+ VariableDefinitions head = declarations.head.asVariableDefinitions();
+ return head?.definitions?.nodes?.head;
}
visitChildren(Visitor visitor) {
« no previous file with comments | « pkg/compiler/lib/src/tokens/keyword.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698