14 references to Add
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Conversions.cs (1)
284
diagnostics.
Add
(ErrorCode.WRN_ConvertingLock, source.Syntax);
Binder\Binder_Expressions.cs (5)
1518
diagnostics.
Add
(ErrorCode.ERR_VariableDeclarationNamedField, syntax, requiredVersion.ToDisplayString());
3918
diagnostics.
Add
(
3930
diagnostics.
Add
(
3941
diagnostics.
Add
(
3949
diagnostics.
Add
(
Binder\Binder_Statements.cs (1)
1986
diagnostics.
Add
(
Symbols\Extensions\SynthesizedExtensionMarker.cs (4)
90
diagnostics.
Add
(ErrorCode.ERR_BadTypeforThis, parameterTypeSyntax, parameterType);
94
diagnostics.
Add
(ErrorCode.ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne, parameterTypeSyntax);
98
diagnostics.
Add
(ErrorCode.ERR_InExtensionParameterMustBeValueType, parameterTypeSyntax);
103
diagnostics.
Add
(ErrorCode.ERR_ModifierOnUnnamedReceiverParameter, parameterTypeSyntax);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
905
diagnostics.
Add
(ErrorCode.WRN_RefReadonlyParameterDefaultValue, syntax, this.Name);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
646
diagnostics.
Add
(IsOverride
Symbols\Source\SourcePropertySymbolBase.cs (1)
1615
diagnostics.
Add
(IsOverride