[svn] r7143: nemerle/trunk/ncc/parsing/AST.n
VladD2
svnadmin at nemerle.org
Sun Dec 24 19:35:54 CET 2006
Log:
Add .ctor which copy FileIndex and IsGenerated bit from source Location.
Author: VladD2
Date: Sun Dec 24 19:35:53 2006
New Revision: 7143
Modified:
nemerle/trunk/ncc/parsing/AST.n
Modified: nemerle/trunk/ncc/parsing/AST.n
==============================================================================
--- nemerle/trunk/ncc/parsing/AST.n (original)
+++ nemerle/trunk/ncc/parsing/AST.n Sun Dec 24 19:35:53 2006
@@ -68,6 +68,15 @@
_endColumn = endCol :> short;
}
+ public this (source : Location, line : int, col : int, endLine : int, endCol : int)
+ {
+ _fileIndex = source._fileIndex;
+ _line = line;
+ _column = col :> short;
+ _endLine = endLine;
+ _endColumn = endCol :> short;
+ }
+
public static Default : Location = Location (0, 0, 0, 0, 0);
public static @== (x : Location, y : Location) : bool { x.Equals (y) }
More information about the svn
mailing list