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: src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers/Microsoft.NetCore.Analyzers/Runtime/PreferJsonElementParse.Fixer.cs
Copy file name to clipboardExpand all lines: src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers/Microsoft.NetCore.Analyzers/Runtime/PreferJsonElementParse.cs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ public override void Initialize(AnalysisContext context)
125
125
// Now we have the pattern: JsonDocument.Parse(...).RootElement
126
126
// Check if the JsonDocument is disposed. We'll look for patterns where it's immediately
127
127
// accessed and not stored, which is the primary concern.
128
-
128
+
129
129
// If the parent operation is an assignment to a variable of type JsonElement,
130
130
// and the JsonDocument is never stored, this is the problematic pattern.
0 commit comments