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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartCatchBlock.java

Issue 11418186: Issue 5359. Highlight 'on' in try-catch statement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParser.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/ast/DartCatchBlock.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartCatchBlock.java b/compiler/java/com/google/dart/compiler/ast/DartCatchBlock.java
index 91818ad5ee2009d017ce9db4bb8f1a942da9295c..6ab02f5af492aedd9b6abf4546b84a5c17c8d8af 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartCatchBlock.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartCatchBlock.java
@@ -8,18 +8,25 @@ package com.google.dart.compiler.ast;
* Represents a Dart 'catch' block.
*/
public class DartCatchBlock extends DartStatement {
- private DartParameter exception;
- private DartParameter stackTrace;
- private DartBlock block;
+ private final int onTokenOffset;
+ private final DartParameter exception;
+ private final DartParameter stackTrace;
+ private final DartBlock block;
public DartCatchBlock(DartBlock block,
+ int onTokenOffset,
DartParameter exception,
DartParameter stackTrace) {
this.block = becomeParentOf(block);
+ this.onTokenOffset = onTokenOffset;
this.exception = becomeParentOf(exception);
this.stackTrace = becomeParentOf(stackTrace);
}
+ public int getOnTokenOffset() {
+ return onTokenOffset;
+ }
+
public DartParameter getException() {
return exception;
}
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParser.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698