Skip to content

Commit 222c690

Browse files
committed
Added numeric length support for array.
1 parent a2c6bcc commit 222c690

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CSharpToJavaScript/Walker.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,7 @@ public override void VisitArrayType(ArrayTypeSyntax node)
17161716

17171717
switch (kind)
17181718
{
1719+
case SyntaxKind.PredefinedType:
17191720
case SyntaxKind.IdentifierName:
17201721
{
17211722
JSSB.Append("Array");
@@ -1759,6 +1760,7 @@ public override void VisitArrayRankSpecifier(ArrayRankSpecifierSyntax node)
17591760

17601761
switch (kind)
17611762
{
1763+
case SyntaxKind.NumericLiteralExpression:
17621764
case SyntaxKind.DivideExpression:
17631765
Visit(asNode);
17641766
break;
@@ -2750,6 +2752,8 @@ where e.IsKind(SyntaxKind.IdentifierToken)
27502752
return true;
27512753
}
27522754

2755+
//Todo? Delete this
2756+
/*
27532757
DataFlowAnalysis _dfa = _Model.AnalyzeDataFlow(node);
27542758
27552759
if (_dfa.Succeeded == false)
@@ -2768,7 +2772,7 @@ where e.IsKind(SyntaxKind.IdentifierToken)
27682772
27692773
return true;
27702774
}
2771-
}
2775+
}*/
27722776
}
27732777
}
27742778
}

0 commit comments

Comments
 (0)