File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Application/HydraScript.Application.StaticAnalysis/Visitors Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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" ;
You can’t perform that action at this time.
0 commit comments