diff options
author | wuestholz <unknown> | 2014-09-23 13:29:53 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2014-09-23 13:29:53 +0200 |
commit | 8bb1e486770ccc399c86c713b7808b0dee5971d5 (patch) | |
tree | 6a19d24a06616b12836a55cacc8ac6ebdb0e2ad9 /Source/Core/Scanner.cs | |
parent | fb226b8b4b9315a0ad2df1fcd1b4a7f12e118791 (diff) |
Did more refactoring.
Diffstat (limited to 'Source/Core/Scanner.cs')
-rw-r--r-- | Source/Core/Scanner.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/Scanner.cs b/Source/Core/Scanner.cs index b050fcdd..5b5c0306 100644 --- a/Source/Core/Scanner.cs +++ b/Source/Core/Scanner.cs @@ -8,7 +8,7 @@ using System.Diagnostics.Contracts; using Microsoft.Boogie;
-
+namespace Microsoft.Boogie {
//-----------------------------------------------------------------------------------
// Buffer
@@ -296,7 +296,7 @@ public class Scanner { }
// [NotDelayed]
- public Scanner (string/*!*/ fileName, Errors/*!*/ errorHandler, bool useBaseName) : base() {
+ public Scanner (string/*!*/ fileName, Errors/*!*/ errorHandler, bool useBaseName = false) : base() {
Contract.Requires(fileName != null);
Contract.Requires(errorHandler != null);
this.errorHandler = errorHandler;
@@ -313,7 +313,7 @@ public class Scanner { }
// [NotDelayed]
- public Scanner (Stream/*!*/ s, Errors/*!*/ errorHandler, string/*!*/ fileName, bool useBaseName) : base() {
+ public Scanner (Stream/*!*/ s, Errors/*!*/ errorHandler, string/*!*/ fileName, bool useBaseName = false) : base() {
Contract.Requires(s != null);
Contract.Requires(errorHandler != null);
Contract.Requires(fileName != null);
@@ -325,7 +325,7 @@ public class Scanner { Init();
}
- private string GetBaseName(string fileName) {
+ string GetBaseName(string fileName) {
return System.IO.Path.GetFileName(fileName); // Return basename
}
@@ -807,3 +807,4 @@ public class Scanner { public delegate void ErrorProc(int n, string filename, int line, int col);
+}
\ No newline at end of file |