summaryrefslogtreecommitdiff
path: root/Source/Core/Scanner.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-09-23 13:29:53 +0200
committerGravatar wuestholz <unknown>2014-09-23 13:29:53 +0200
commit8bb1e486770ccc399c86c713b7808b0dee5971d5 (patch)
tree6a19d24a06616b12836a55cacc8ac6ebdb0e2ad9 /Source/Core/Scanner.cs
parentfb226b8b4b9315a0ad2df1fcd1b4a7f12e118791 (diff)
Did more refactoring.
Diffstat (limited to 'Source/Core/Scanner.cs')
-rw-r--r--Source/Core/Scanner.cs9
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