1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

add imports for usage of static members of type

This commit is contained in:
Kevin Glynn 2011-01-14 16:18:55 +01:00
parent 95e8ba60af
commit 891b83b894

View File

@ -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;
}