2008-11-18 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.Compilation / Location.cs
index e52c807e2d68699e39ee2b2c0b9fb919312c2fce..fef0baf1484f2dc9e2fe19b367d6f705960607c7 100644 (file)
@@ -34,7 +34,8 @@ namespace System.Web.Compilation
        {
                int beginLine, endLine, beginColumn, endColumn;
                string fileName, plainText;
-
+               ILocation location;
+               
                public Location (ILocation location)
                {
                        Init (location);
@@ -57,6 +58,7 @@ namespace System.Web.Compilation
                                fileName = location.Filename;
                                plainText = location.PlainText;
                        }
+                       this.location = location;
                }
 
                public string Filename {
@@ -88,6 +90,15 @@ namespace System.Web.Compilation
                        get { return plainText; }
                        set { plainText = value; }
                }
+
+               public string FileText {
+                       get {
+                               if (location != null)
+                                       return location.FileText;
+
+                               return null;
+                       }
+               }
        }
 }