Selaa lähdekoodia

Fixed missing variable initializer

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@8519 8c9fc860-2736-0410-a75d-ab315db34111
negelef 6 vuotta sitten
vanhempi
commit
fc4daa5c88
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      source/FoxPrintout.Mod

+ 3 - 0
source/FoxPrintout.Mod

@@ -1077,6 +1077,9 @@ TYPE
 					Indent;
 					Indent;
 					Comments(x.comment, x, FALSE);
 					Comments(x.comment, x, FALSE);
 					PrintSymbol(x); Flags(x);
 					PrintSymbol(x); Flags(x);
+					IF x.initializer # NIL THEN
+						w.String( " := " ); Expression (x.initializer);
+					END;
 					WHILE(next # NIL) & (next.type = x.type) & ((next.access # SyntaxTree.Hidden) OR (mode > SourceCode)) DO
 					WHILE(next # NIL) & (next.type = x.type) & ((next.access # SyntaxTree.Hidden) OR (mode > SourceCode)) DO
 
 
 						w.String(", "); PrintSymbol(next); Flags(next);
 						w.String(", "); PrintSymbol(next); Flags(next);