41 references to Add
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder_Constraints.cs (1)
316diagnostics.Add(ErrorCode.ERR_RefStructConstraintAlreadySpecified, allowsConstraint);
Binder\Binder_Conversions.cs (8)
337diagnostics.Add(ErrorCode.WRN_ConvertingLock, source.Syntax); 955_diagnostics.Add(ErrorCode.ERR_CollectionRefLikeElementType, _node.Syntax); 979_diagnostics.Add(hasSpreadElements 1032_diagnostics.Add(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, _targetType.OriginalDefinition); 1041_diagnostics.Add(ErrorCode.ERR_ParamsCollectionInfiniteChainOfConstructorCalls, syntax, inProgress, inProgressConstructor.OriginalDefinition); 1057_diagnostics.Add(ErrorCode.ERR_CollectionInitializerInfiniteChainOfAddCalls, syntax, _targetType); 1517diagnostics.Add(ErrorCode.ERR_CollectionBuilderAttributeMethodNotFound, syntax, methodName ?? "", elementTypeOriginalDefinition, targetTypeOriginalDefinition); 2026diagnostics.Add(ErrorCode.ERR_CollectionExpressionMissingAdd, syntax, methodGroup.ReceiverOpt.Type);
Binder\Binder_Expressions.cs (10)
1447diagnostics.Add(ErrorCode.ERR_AttrDependentTypeNotAllowed, attributeName, type); 1453diagnostics.Add(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, attributeName, type); 1484diagnostics.Add(ErrorCode.WRN_FieldIsAmbiguous, node, Compilation.LanguageVersion.ToDisplayString()); 1517diagnostics.Add(ErrorCode.ERR_NoSuchMember, node, ContainingMember(), "field"); 1572diagnostics.Add(ErrorCode.ERR_VariableDeclarationNamedField, syntax, requiredVersion.ToDisplayString()); 4007diagnostics.Add( 4019diagnostics.Add( 4030diagnostics.Add( 4038diagnostics.Add( 5465diagnostics.Add(ErrorCode.ERR_CollectionArgumentsDynamicBinding, arg.Syntax);
Binder\Binder_Invocation.cs (2)
272diagnostics.Add(ErrorCode.ERR_UnsupportedFeatureInRuntimeAsync, node, ContainingMemberOrLambda); 2413diagnostics.Add(ErrorCode.ERR_NameofExtensionMember, boundArgument.Syntax);
Binder\Binder_Statements.cs (1)
2016diagnostics.Add(
Binder\DecisionDagBuilder_CheckOrReachability.cs (2)
212diagnostics.Add(errorCode, node); 387diagnostics.Add(ErrorCode.HDN_RedundantPatternStackGuard, pattern.Syntax);
Symbols\Extensions\SynthesizedExtensionMarker.cs (4)
98diagnostics.Add(ErrorCode.ERR_BadTypeforThis, parameterTypeSyntax, parameterType); 102diagnostics.Add(ErrorCode.ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne, parameterTypeSyntax); 107diagnostics.Add(ErrorCode.ERR_InExtensionParameterMustBeValueType, parameterTypeSyntax); 112diagnostics.Add(ErrorCode.ERR_ModifierOnUnnamedReceiverParameter, parameterTypeSyntax);
Symbols\Source\ParameterHelpers.cs (1)
1080diagnostics.Add(ErrorCode.WRN_RefReadonlyParameterDefaultValue, parameterSyntax.Default.Value, parameterSyntax.Identifier.ValueText);
Symbols\Source\SourceComplexParameterSymbol.cs (5)
938diagnostics.Add(ErrorCode.WRN_RefReadonlyParameterDefaultValue, syntax, this.Name); 1604diagnostics.Add(ErrorCode.ERR_ScopedRefAndRefStructOnly, ParameterSyntax); 1660diagnostics.Add(ErrorCode.ERR_ParamsCollectionExtensionAddMethod, syntax, Type); 1681diagnostics.Add(ErrorCode.ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember, syntax, reportAsLessVisible, ContainingSymbol); 1742diagnostics.Add(ErrorCode.ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember, syntax, method, ContainingSymbol);
Symbols\Source\SourceConstructorSymbol.cs (1)
79diagnostics.Add(ErrorCode.ERR_PartialConstructorInitializer, initializer, this);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4909diagnostics.Add(ErrorCode.ERR_NoImplicitConversionToObject, typeSyntax, parameterType.Type);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
650diagnostics.Add(IsOverride 1354diagnostics.Add(ErrorCode.ERR_InterceptorGlobalNamespace, attributeSyntax); 1359diagnostics.Add(ErrorCode.ERR_InterceptorsFeatureNotEnabled, attributeSyntax, recommendedProperty);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1647diagnostics.Add(IsOverride
Symbols\Symbol_Attributes.cs (1)
688diagnostics.Add(ErrorCode.ERR_AttributesNotAllowed, attributeList);