From 891b83b89481dfbd3715e7f561c95cb72d57cc67 Mon Sep 17 00:00:00 2001 From: Kevin Glynn Date: Fri, 14 Jan 2011 16:18:55 +0100 Subject: [PATCH] add imports for usage of static members of type --- CSharpTranslator/antlr3/src/cs2j/CSharp/NetMaker.g | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CSharpTranslator/antlr3/src/cs2j/CSharp/NetMaker.g b/CSharpTranslator/antlr3/src/cs2j/CSharp/NetMaker.g index 5a62f09..c9c0f9d 100644 --- a/CSharpTranslator/antlr3/src/cs2j/CSharp/NetMaker.g +++ b/CSharpTranslator/antlr3/src/cs2j/CSharp/NetMaker.g @@ -237,6 +237,7 @@ scope { string staticType = $e1.dotNetType + "." + $i1.thetext; TypeRepTemplate type = findType(staticType); if (type != null) { + Imports.Add(type.Imports); $dotNetType = type; } else { @@ -280,6 +281,7 @@ scope { // Not a variable, not a property read, is it a type name? TypeRepTemplate staticType = findType($i.thetext); if (staticType != null) { + Imports.Add(staticType.Imports); $dotNetType = staticType; found = true; }