C#: Enable syntax highlighting in QLDoc snippets

This commit is contained in:
Tom Hvitved
2020-06-23 16:49:31 +02:00
parent 843c5c6c1e
commit 652de80fa5
54 changed files with 442 additions and 439 deletions

View File

@@ -74,7 +74,7 @@ namespace Semmle.Extraction.CSharp.Entities.Expressions
var typeInfoRight = cx.GetTypeInfo(assignment.Right);
if (typeInfoRight.Type is null)
// The type may be null for nested initializers such as
// ```
// ```csharp
// new ClassWithArrayField() { As = { [0] = a } }
// ```
// In this case we take the type from the assignment