mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
C#: Enable syntax highlighting in QLDoc snippets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user