37 references to Add
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_Constraints.cs (1)
316
diagnostics.
Add
(ErrorCode.ERR_RefStructConstraintAlreadySpecified, allowsConstraint);
Binder\Binder_Conversions.cs (7)
284
diagnostics.
Add
(ErrorCode.WRN_ConvertingLock, source.Syntax);
831
diagnostics.
Add
(node.HasSpreadElements(out _, out _)
872
diagnostics.
Add
(ErrorCode.ERR_CollectionExpressionImmutableArray, syntax, targetType.OriginalDefinition);
889
diagnostics.
Add
(ErrorCode.ERR_ParamsCollectionInfiniteChainOfConstructorCalls, syntax, inProgress, inProgressConstructor.OriginalDefinition);
905
diagnostics.
Add
(ErrorCode.ERR_CollectionInitializerInfiniteChainOfAddCalls, syntax, targetType);
1052
diagnostics.
Add
(ErrorCode.ERR_CollectionBuilderAttributeMethodNotFound, syntax, methodName ?? "", elementTypeOriginalDefinition, targetTypeOriginalDefinition);
1428
diagnostics.
Add
(ErrorCode.ERR_CollectionExpressionMissingAdd, syntax, methodGroup.ReceiverOpt.Type);
Binder\Binder_Expressions.cs (9)
1425
diagnostics.
Add
(ErrorCode.ERR_AttrDependentTypeNotAllowed, attributeName, type);
1431
diagnostics.
Add
(ErrorCode.ERR_AttrTypeArgCannotBeTypeVar, attributeName, type);
1462
diagnostics.
Add
(ErrorCode.WRN_FieldIsAmbiguous, node, Compilation.LanguageVersion.ToDisplayString());
1495
diagnostics.
Add
(ErrorCode.ERR_NoSuchMember, node, ContainingMember(), "field");
1550
diagnostics.
Add
(ErrorCode.ERR_VariableDeclarationNamedField, syntax, requiredVersion.ToDisplayString());
3950
diagnostics.
Add
(
3962
diagnostics.
Add
(
3973
diagnostics.
Add
(
3981
diagnostics.
Add
(
Binder\Binder_Invocation.cs (2)
272
diagnostics.
Add
(ErrorCode.ERR_UnsupportedFeatureInRuntimeAsync, node, ContainingMemberOrLambda);
2393
diagnostics.
Add
(ErrorCode.ERR_NameofExtensionMember, boundArgument.Syntax);
Binder\Binder_Statements.cs (1)
2015
diagnostics.
Add
(
Binder\DecisionDagBuilder_CheckOrReachability.cs (2)
210
diagnostics.
Add
(errorCode, node);
379
diagnostics.
Add
(ErrorCode.HDN_RedundantPatternStackGuard, pattern.Syntax);
Symbols\Extensions\SynthesizedExtensionMarker.cs (4)
98
diagnostics.
Add
(ErrorCode.ERR_BadTypeforThis, parameterTypeSyntax, parameterType);
102
diagnostics.
Add
(ErrorCode.ERR_RefExtensionParameterMustBeValueTypeOrConstrainedToOne, parameterTypeSyntax);
107
diagnostics.
Add
(ErrorCode.ERR_InExtensionParameterMustBeValueType, parameterTypeSyntax);
112
diagnostics.
Add
(ErrorCode.ERR_ModifierOnUnnamedReceiverParameter, parameterTypeSyntax);
Symbols\Source\ParameterHelpers.cs (1)
1061
diagnostics.
Add
(ErrorCode.WRN_RefReadonlyParameterDefaultValue, parameterSyntax.Default.Value, parameterSyntax.Identifier.ValueText);
Symbols\Source\SourceComplexParameterSymbol.cs (5)
938
diagnostics.
Add
(ErrorCode.WRN_RefReadonlyParameterDefaultValue, syntax, this.Name);
1604
diagnostics.
Add
(ErrorCode.ERR_ScopedRefAndRefStructOnly, ParameterSyntax);
1659
diagnostics.
Add
(ErrorCode.ERR_ParamsCollectionExtensionAddMethod, syntax, Type);
1680
diagnostics.
Add
(ErrorCode.ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember, syntax, reportAsLessVisible, ContainingSymbol);
1735
diagnostics.
Add
(ErrorCode.ERR_ParamsMemberCannotBeLessVisibleThanDeclaringMember, syntax, method, ContainingSymbol);
Symbols\Source\SourceConstructorSymbol.cs (1)
79
diagnostics.
Add
(ErrorCode.ERR_PartialConstructorInitializer, initializer, this);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
646
diagnostics.
Add
(IsOverride
1350
diagnostics.
Add
(ErrorCode.ERR_InterceptorGlobalNamespace, attributeSyntax);
1355
diagnostics.
Add
(ErrorCode.ERR_InterceptorsFeatureNotEnabled, attributeSyntax, recommendedProperty);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1629
diagnostics.
Add
(IsOverride