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

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

Issue 9651004: Make SourceInfo a class, rename its menthods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for formatting, lazily create LainesInfo Created 8 years, 9 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/DartComment.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartComment.java b/compiler/java/com/google/dart/compiler/ast/DartComment.java
index 4e25c0492ed9fe56169a41aafcf1248bc420c904..30fbdec793234fe9eaddd7a0b5880af82b1d829b 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartComment.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartComment.java
@@ -5,6 +5,7 @@
package com.google.dart.compiler.ast;
import com.google.dart.compiler.Source;
+import com.google.dart.compiler.common.SourceInfo;
public class DartComment extends DartNode {
@@ -17,7 +18,7 @@ public class DartComment extends DartNode {
private Style style;
public DartComment(Source source, int start, int length, int line, int col, Style style) {
- setSourceLocation(source, line, col, start, length);
+ setSourceInfo(new SourceInfo(source, start, length));
this.style = style;
}

Powered by Google App Engine
This is Rietveld 408576698