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:
parent
95e8ba60af
commit
891b83b894
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user