You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CSharpToJavaScript/Walker.cs
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -289,6 +289,9 @@ public override void VisitClassDeclaration(ClassDeclarationSyntax node)
289
289
290
290
switch(kind)
291
291
{
292
+
caseSyntaxKind.StructDeclaration:
293
+
caseSyntaxKind.OperatorDeclaration:
294
+
caseSyntaxKind.ConversionOperatorDeclaration:
292
295
caseSyntaxKind.AttributeList:
293
296
{
294
297
if(_Options.Debug)
@@ -551,6 +554,12 @@ public override void VisitBlock(BlockSyntax node)
551
554
552
555
switch(kind)
553
556
{
557
+
caseSyntaxKind.UnsafeStatement:
558
+
{
559
+
if(_Options.Debug)
560
+
Log.WarningLine($"\"{kind}\" not implemented or unlikely to be implemented. Ignoring! ({node.FullSpan}|l:{_Line}|{node.FullSpan.Start-_Characters}-{node.FullSpan.End-_Characters})\n|{asNode.ToFullString()}|",_Options);
Log.ErrorLine($"asNode : _value is {_value.Kind()}\n|{asNode.ToFullString()}|",_Options);
1013
1022
break;
1014
1023
}
1015
1024
default:
@@ -1105,6 +1114,7 @@ public override void VisitMethodDeclaration(MethodDeclarationSyntax node)
1105
1114
Log.WarningLine($"\"{kind}\" not implemented or unlikely to be implemented. Ignoring! ({node.FullSpan}|l:{_Line}|{node.FullSpan.Start-_Characters}-{node.FullSpan.End-_Characters})\n|{asNode.ToFullString()}|",_Options);
1106
1115
break;
1107
1116
}
1117
+
caseSyntaxKind.IdentifierName:
1108
1118
caseSyntaxKind.GenericName:
1109
1119
caseSyntaxKind.PredefinedType:
1110
1120
{
@@ -1115,9 +1125,9 @@ public override void VisitMethodDeclaration(MethodDeclarationSyntax node)
0 commit comments