Skip to content

Commit b0360e9

Browse files
committed
#200 - fix typing
1 parent 00e417d commit b0360e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Application/HydraScript.Application.StaticAnalysis/Visitors/SemanticChecker.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ public Type Visit(AssignmentExpression visitable)
368368

369369
public Type Visit(MemberExpression visitable)
370370
{
371-
var idType = visitable.Id.Accept(This);
371+
IAbstractSyntaxTreeNode id = visitable.Id;
372+
var idType = id.Accept(This);
372373
visitable.ComputedIdTypeGuid = _computedTypes.Save(idType);
373374
return visitable.Empty() ? idType : visitable.AccessChain?.Accept(This) ?? "undefined";
374375
}
@@ -557,7 +558,8 @@ public Type Visit(OutputStatement visitable)
557558

558559
public Type Visit(InputStatement visitable)
559560
{
560-
var idType = visitable.Destination.Accept(This);
561+
IAbstractSyntaxTreeNode id = visitable.Destination;
562+
var idType = id.Accept(This);
561563
if (!idType.Equals("string"))
562564
throw new UnsupportedOperation(visitable.Segment, idType, "<<<");
563565
return "undefined";

0 commit comments

Comments
 (0)