package kalang.compiler;

import java.io.*;
import java.nio.*;
import java.net.*;
import java.util.*;

/**
 *
 * @author Kason Yang <i@kasonyang.com>
 */
public class OffsetRange {
    
    public int 
            startOffset = -1,
            stopOffset =-1,
            startLine = -1,
            startLineColumn = -1,
            stopLine = -1,
            stopLineColumn = -1;
    
    public final static OffsetRange NONE = new OffsetRange();

    public OffsetRange() {
        
    }

    @Override
    public String toString() {
        return String.format("(%d,%d)",startOffset,stopOffset);
    }
    
    

}

@@ -218,21 +218,16 @@
 rtOffset
- = -1
 ,%0A      
@@ -246,12 +246,8 @@
 fset
- =-1
 ,%0A  
@@ -261,29 +261,24 @@
    startLine
- = -1
 ,%0A          
@@ -294,21 +294,16 @@
 neColumn
- = -1
 ,%0A      
@@ -316,21 +316,16 @@
 stopLine
- = -1
 ,%0A      
@@ -348,13 +348,8 @@
 lumn
- = -1
 ;%0A  
@@ -437,28 +437,552 @@
 etRange(
-) %7B%0A        
+int startOffset, int stopOffset, int startLine, int startLineColumn, int stopLine, int stopLineColumn) %7B%0A        this.startOffset = startOffset;%0A        this.stopOffset = stopOffset;%0A        this.startLine = startLine;%0A        this.startLineColumn = startLineColumn;%0A        this.stopLine = stopLine;%0A        this.stopLineColumn = stopLineColumn;%0A    %7D%0A%0A    public OffsetRange() %7B%0A        startOffset = -1;%0A        stopOffset =-1;%0A        startLine = -1;%0A        startLineColumn = -1;%0A        stopLine = -1;%0A        stopLineColumn = -1;
 %0A    %7D%0A%0A

add constructor