Skip to content

Commit 91e1d61

Browse files
committed
fix extension method issue with printFullTypeName
1 parent e0ebdb1 commit 91e1d61

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ExpressionTranslator/ExpressionTranslator.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,11 @@ protected override Expression VisitMethodCall(MethodCallExpression node)
14241424
{
14251425
isExtension = true;
14261426
arg0 = VisitGroup(node.Arguments[0], node.NodeType);
1427-
Translate(node.Method.DeclaringType!); //execute type without print
1427+
if (!string.IsNullOrEmpty(node.Method.DeclaringType?.Namespace))
1428+
{
1429+
_usings ??= new HashSet<string>();
1430+
_usings.Add(node.Method.DeclaringType!.Namespace);
1431+
}
14281432
}
14291433
else if (node.Method.DeclaringType != null)
14301434
{

ExpressionTranslator/ExpressionTranslator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<SignAssembly>True</SignAssembly>
1313
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
1414
<AssemblyOriginatorKeyFile>ExpressionTranslator.snk</AssemblyOriginatorKeyFile>
15-
<Version>2.3.3</Version>
15+
<Version>2.3.4</Version>
1616
<RootNamespace>ExpressionDebugger</RootNamespace>
1717
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1818
<PackageIcon>icon.png</PackageIcon>

0 commit comments

Comments
 (0)