[svn] r5829: nemerle/trunk/ncc/passes.n

nazgul svnadmin at nemerle.org
Wed Oct 19 18:10:25 CEST 2005


Log:
Move choosing of indentation syntax lexer pipeline to InitCompiler as it should be rerun at every Passes.Run

Author: nazgul
Date: Wed Oct 19 18:10:22 2005
New Revision: 5829

Modified:
   nemerle/trunk/ncc/passes.n

Modified: nemerle/trunk/ncc/passes.n
==============================================================================
--- nemerle/trunk/ncc/passes.n	(original)
+++ nemerle/trunk/ncc/passes.n	Wed Oct 19 18:10:22 2005
@@ -77,10 +77,6 @@
     
     /// initialize pipelines with default values
     this () {
-      if (Options.IndentationSyntax)
-        LexingPipeline = LexerFileIndent;
-      else
-        LexingPipeline = LexerFile;
       ParsingPipeline = MainParser.Parse;
       ScanningPipeline = ScanTypeHierarchy.ProcessDeclaration;
     }
@@ -135,6 +131,10 @@
       Options.Validate ();
       Passes.Solver = Solver ();
       Hierarchy = null;
+      if (Options.IndentationSyntax)
+        LexingPipeline = LexerFileIndent;
+      else
+        LexingPipeline = LexerFile;
       when (OnInit != null) OnInit ();
       while (! CleanupOnce.IsEmpty)
         (CleanupOnce.Take ()) ();



More information about the svn mailing list