[svn] r6792: nemerle/trunk/tools/ndp/NemerleDoc.n

VladD2 svnadmin at nemerle.org
Thu Oct 26 14:12:05 CEST 2006


Log:
Fix string comparisons in NemerleDoc.n

Author: VladD2
Date: Thu Oct 26 14:12:04 2006
New Revision: 6792

Modified:
   nemerle/trunk/tools/ndp/NemerleDoc.n

Modified: nemerle/trunk/tools/ndp/NemerleDoc.n
==============================================================================
--- nemerle/trunk/tools/ndp/NemerleDoc.n	(original)
+++ nemerle/trunk/tools/ndp/NemerleDoc.n	Thu Oct 26 14:12:04 2006
@@ -1,15 +1,18 @@
+using System;
 using NemerleDoc;
 
-class Nemerledoc {
-  public static Main(arg : array [ string ]) : void
+class Nemerledoc
+{
+  public static Main(arg : array [string]) : void
   {
+    def endsWith(x, ext) { x.EndsWith(ext, StringComparison.InvariantCultureIgnoreCase) }
     def tree = DataTree();
     foreach (file in arg)
     {
-      when (file.EndsWith(".dll") || file.EndsWith(".exe"))
+      when (endsWith(file, ".dll") || endsWith(file, ".exe"))
         AssemblyAnalyzer.analyze(file, tree);
         
-      when (file.EndsWith(".xml"))
+      when (endsWith(file, ".xml"))
         XmlDocAnalyzer.start(tree, file);
       
       tree.AddSource(file);



More information about the svn mailing list