We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WithExpression
IdentifierReference
copyFrom
1 parent 01beb2a commit f5c1a4aCopy full SHA for f5c1a4a
src/Application/HydraScript.Application.CodeGeneration/Visitors/ExpressionInstructionProvider.cs
@@ -181,8 +181,8 @@ public AddressedInstructions Visit(WithExpression visitable)
181
182
result.AddRange(visitable.Expression is PrimaryExpression ? [] : visitable.Expression.Accept(This));
183
184
- var copyFrom = visitable.Expression is PrimaryExpression primary
185
- ? (Name)_valueDtoConverter.Convert(primary.ToValueDto())
+ var copyFrom = visitable.Expression is IdentifierReference objectIdent
+ ? new Name(objectIdent)
186
: new Name(result.OfType<Simple>().Last().Left!);
187
188
for (var i = 0; i < visitable.ComputedCopiedProperties.Count; i++)
0 commit comments