1 write to _context
Roslyn.Diagnostics.Analyzers (1)
AbstractDoNotCopyValue.cs (1)
365_context = context;
8 references to _context
Roslyn.Diagnostics.Analyzers (8)
AbstractDoNotCopyValue.cs (8)
1107else if (operation.GetRefKind(_context.OwningSymbol) == RefKind.None && Cache.IsNonCopyableType(returnedValue.Type)) 1109_context.ReportDiagnostic(returnedValue.CreateDiagnostic(NoReturnValueFromReferenceRule, returnedValue.Type)); 1130_context.ReportDiagnostic(value.CreateDiagnostic(NoAssignValueFromReferenceRule, value.Type)); 1288_context.ReportDiagnostic(initializer.CreateDiagnostic(NoAssignValueFromReferenceRule, symbol.Type)); 1315_context.ReportDiagnostic(initializer.CreateDiagnostic(NoAssignValueFromReferenceRule, operation.Symbol.Type)); 1402return _context.OwningSymbol.IsReadOnly() ? RefKind.RefReadOnly : RefKind.Ref; 1569_context.ReportDiagnostic(operation.Syntax.CreateDiagnostic(AvoidNullableWrapperRule, type, operation.Kind)); 1659_context.ReportDiagnostic(node.CreateDiagnostic(UnsupportedUseRule, symbol, operationKind));