35 references to Add
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder_Constraints.cs (1)
316diagnostics.Add(ErrorCode.ERR_RefStructConstraintAlreadySpecified, allowsConstraint);
Binder\Binder_Conversions.cs (7)
284diagnostics.Add(ErrorCode.WRN_ConvertingLock, source.Syntax); 831diagnostics.Add(node.HasSpreadElements(out _, out _) 872diagnostics.Add(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, targetType.OriginalDefinition); 889diagnostics.Add(ErrorCode.ERR_ParamsCollectionInfiniteChainOfConstructorCalls, syntax, inProgress, inProgressConstructor.OriginalDefinition); 905diagnostics.Add(ErrorCode.ERR_CollectionInitializerInfiniteChainOfAddCalls, syntax, targetType); 1052diagnostics.Add(ErrorCode.ERR_CollectionBuilderAttributeMethodNotFound, syntax, methodName ?? "", elementTypeOriginalDefinition, targetTypeOriginalDefinition); 1428diagnostics.Add(ErrorCode.ERR_CollectionExpressionMissingAdd, syntax, methodGroup.ReceiverOpt.Type);
Binder\Binder_Expressions.cs (9)
1415diagnostics.Add(ErrorCode.ERR_AttrDependentTypeNotAllowed, attributeName, type); 1421diagnostics.Add(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, attributeName, type); 1452diagnostics.Add(ErrorCode.WRN_FieldIsAmbiguous, node, Compilation.LanguageVersion.ToDisplayString()); 1479diagnostics.Add(ErrorCode.ERR_NoSuchMember, node, ContainingMember(), "field"); 1518diagnostics.Add(ErrorCode.ERR_VariableDeclarationNamedField, syntax, requiredVersion.ToDisplayString()); 3929diagnostics.Add( 3941diagnostics.Add( 3952diagnostics.Add( 3960diagnostics.Add(
Binder\Binder_Invocation.cs (2)
271diagnostics.Add(ErrorCode.ERR_UnsupportedFeatureInRuntimeAsync, node, ContainingMemberOrLambda); 2334diagnostics.Add(ErrorCode.ERR_NameofExtensionMember, boundArgument.Syntax);
Binder\Binder_Statements.cs (1)
2009diagnostics.Add(
Symbols\Extensions\SynthesizedExtensionMarker.cs (4)
98diagnostics.Add(ErrorCode.ERR_BadTypeforThis, parameterTypeSyntax, parameterType); 102diagnostics.Add(ErrorCode.ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne, parameterTypeSyntax); 106diagnostics.Add(ErrorCode.ERR_InExtensionParameterMustBeValueType, parameterTypeSyntax); 111diagnostics.Add(ErrorCode.ERR_ModifierOnUnnamedReceiverParameter, parameterTypeSyntax);
Symbols\Source\ParameterHelpers.cs (1)
1053diagnostics.Add(ErrorCode.WRN_RefReadonlyParameterDefaultValue, parameterSyntax.Default.Value, parameterSyntax.Identifier.ValueText);
Symbols\Source\SourceComplexParameterSymbol.cs (5)
913diagnostics.Add(ErrorCode.WRN_RefReadonlyParameterDefaultValue, syntax, this.Name); 1563diagnostics.Add(ErrorCode.ERR_ScopedRefAndRefStructOnly, ParameterSyntax); 1618diagnostics.Add(ErrorCode.ERR_ParamsCollectionExtensionAddMethod, syntax, Type); 1639diagnostics.Add(ErrorCode.ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember, syntax, reportAsLessVisible, ContainingSymbol); 1694diagnostics.Add(ErrorCode.ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember, syntax, method, ContainingSymbol);
Symbols\Source\SourceConstructorSymbol.cs (1)
79diagnostics.Add(ErrorCode.ERR_PartialConstructorInitializer, initializer, this);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
646diagnostics.Add(IsOverride 1350diagnostics.Add(ErrorCode.ERR_InterceptorGlobalNamespace, attributeSyntax); 1355diagnostics.Add(ErrorCode.ERR_InterceptorsFeatureNotEnabled, attributeSyntax, recommendedProperty);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1629diagnostics.Add(IsOverride