Added error for string literal expressions

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-18 20:48:32 +01:00
1 親 01623476ff
コミット 6653cba24f
4ファイル変更
+46 -1

検索条件に一致するファイルはありません

+4
ファイルの表示
@@ -316,6 +316,10 @@ namespace ComputeSharp.SourceGenerators.SyntaxRewriters
return updatedNode.WithToken(Literal(updatedNode.Token.ValueText + "L", 0d));
}
}
else if (updatedNode.IsKind(SyntaxKind.StringLiteralExpression))
{
this.context.ReportDiagnostic(StringLiteralExpression, node);
}
return updatedNode;
}