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;
|
string staticType = $e1.dotNetType + "." + $i1.thetext;
|
||||||
TypeRepTemplate type = findType(staticType);
|
TypeRepTemplate type = findType(staticType);
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
|
Imports.Add(type.Imports);
|
||||||
$dotNetType = type;
|
$dotNetType = type;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -280,6 +281,7 @@ scope {
|
|||||||
// Not a variable, not a property read, is it a type name?
|
// Not a variable, not a property read, is it a type name?
|
||||||
TypeRepTemplate staticType = findType($i.thetext);
|
TypeRepTemplate staticType = findType($i.thetext);
|
||||||
if (staticType != null) {
|
if (staticType != null) {
|
||||||
|
Imports.Add(staticType.Imports);
|
||||||
$dotNetType = staticType;
|
$dotNetType = staticType;
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user