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

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

Issue 11362002: Option to disable syntax highlighter and use mostly semantic highlighter. Tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
Index: compiler/java/com/google/dart/compiler/ast/DartPartOfDirective.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartPartOfDirective.java b/compiler/java/com/google/dart/compiler/ast/DartPartOfDirective.java
index d9bdbe0022a66c4b0f4b440f32db5f90397bbdfa..9d55581301a7b4edfc6d6e990563d2089df03ed2 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartPartOfDirective.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartPartOfDirective.java
@@ -8,12 +8,18 @@ package com.google.dart.compiler.ast;
* Implements the "part of" directive.
*/
public class DartPartOfDirective extends DartDirective {
- private DartExpression name;
+ private final int ofOffset;
+ private final DartExpression name;
- public DartPartOfDirective(DartExpression name) {
+ public DartPartOfDirective(int ofOffset, DartExpression name) {
+ this.ofOffset = ofOffset;
this.name = becomeParentOf(name);
}
+ public int getOfOffset() {
+ return ofOffset;
+ }
+
public DartExpression getName() {
return name;
}

Powered by Google App Engine
This is Rietveld 408576698