199 references to Add
Microsoft.CodeAnalysis.CSharp (199)
Binder\Binder.ValueChecks.cs (2)
1044diagnostics.Add(ErrorCode.ERR_RefLocalOrParamExpected, node.Location); 5291diagnostics.Add(ErrorCode.ERR_InternalError, node.Location);
Binder\Binder_Constraints.cs (1)
360diagnostics.Add(ErrorCode.ERR_TypeConstraintsMustBeUniqueAndFirst, syntax.GetLocation());
Binder\Binder_Expressions.cs (11)
353diagnostics.Add(ErrorCode.ERR_DefaultLiteralNoTargetType, defaultExpr.Syntax.GetLocation()); 396diagnostics.Add(ErrorCode.ERR_CollectionExpressionNoTargetType, expr.Syntax.GetLocation()); 422diagnostics.Add(ErrorCode.ERR_CannotInferDelegateType, syntax.GetLocation()); 4833diagnostics.Add(ErrorCode.ERR_NoDynamicPhantomOnBaseCtor, errorLocation); 4977diagnostics.Add(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, errorLocation); 5023diagnostics.Add(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, errorLocation); 5032diagnostics.Add(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, errorLocation); 5349diagnostics.Add(ErrorCode.ERR_MethodNameExpected, argument.Syntax.Location); 5410diagnostics.Add(ErrorCode.ERR_MethodNameExpected, argument.Syntax.Location); 5820diagnostics.Add(ErrorCode.ERR_InterpolatedStringsReferencingInstanceCannotBeInObjectInitializers, argument.Syntax.Location); 8514diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, node.Location);
Binder\Binder_Invocation.cs (2)
1610diagnostics.Add(ErrorCode.ERR_BadAttributeArgument, syntax.Location); 2311diagnostics.Add(ErrorCode.ERR_NameofExtensionMethod, methodGroup.Syntax.Location);
Binder\Binder_Operators.cs (1)
4389diagnostics.Add(_inUnsafeRegion ? ErrorCode.WRN_MismatchedRefEscapeInTernary : ErrorCode.ERR_MismatchedRefEscapeInTernary, node.Location);
Binder\Binder_Patterns.cs (5)
103diagnostics.Add(ErrorCode.WRN_GivenExpressionNeverMatchesPattern, node.Location); 110diagnostics.Add(ErrorCode.WRN_GivenExpressionAlwaysMatchesConstant, node.Location); 117diagnostics.Add(ErrorCode.WRN_GivenExpressionAlwaysMatchesPattern, node.Location); 737diagnostics.Add(ErrorCode.ERR_PointerTypeInPatternMatching, typeSyntax.Location); 882diagnostics.Add(ErrorCode.ERR_DesignatorBeneathPatternCombinator, identifier.GetLocation());
Binder\Binder_Query.cs (3)
937diagnostics.Add(ErrorCode.ERR_NullNotValid, node.Location); 941diagnostics.Add(ErrorCode.ERR_DefaultLiteralNotValid, node.Location); 945diagnostics.Add(ErrorCode.ERR_ImplicitObjectCreationNotValid, node.Location);
Binder\Binder_Statements.cs (2)
1466diagnostics.Add(ErrorCode.ERR_VoidAssignment, op1.Syntax.Location); 2189diagnostics.Add(ErrorCode.ERR_InternalError, syntax.Location);
Binder\Binder_Symbols.cs (1)
2595return diagnostics.Add(code, location);
Binder\ExecutableCodeBinder.cs (3)
114diagnostics.Add(ErrorCode.ERR_BadIteratorArgType, parameter.GetFirstLocation()); 118diagnostics.Add(ErrorCode.ERR_UnsafeIteratorArgType, parameter.GetFirstLocation()); 126diagnostics.Add(ErrorCode.ERR_VarargsIterator, errorLocation);
Binder\ForEachLoopBinder.cs (2)
943diagnostics.Add(ErrorCode.ERR_BadDynamicAwaitForEach, collectionSyntax.Location); 1179diagnostics.Add(ErrorCode.ERR_NullNotValid, collectionExpr.Syntax.Location);
Binder\InMethodBinder.cs (1)
318diagnostics.Add(ErrorCode.ERR_InternalError, newLocation);
Binder\LocalScopeBinder.cs (1)
537diagnostics.Add(ErrorCode.ERR_InternalError, newLocation);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
479diagnostics.Add(ErrorCode.ERR_FunctionPointersCannotBeCalledWithNamedArguments, badName); 513diagnostics.Add(
Binder\SwitchExpressionBinder.cs (1)
71diagnostics.Add(ErrorCode.ERR_SwitchArmSubsumed, arm.Pattern.Syntax.Location);
Binder\WithLambdaParametersBinder.cs (1)
154diagnostics.Add(ErrorCode.ERR_InternalError, newLocation);
BoundTree\BoundTreeVisitors.cs (1)
180diagnostics.Add(ErrorCode.ERR_InsufficientStack, GetTooLongOrComplexExpressionErrorLocation(Node));
CodeGen\EmitExpression.cs (1)
88_diagnostics.Add(ErrorCode.ERR_InsufficientStack,
CodeGen\EmitStatement.cs (1)
387_diagnostics.Add(ErrorCode.ERR_InsufficientStack,
Compilation\CSharpCompilation.cs (3)
1880diagnostics.Add(ErrorCode.ERR_SimpleProgramNotAnExecutable, simpleProgramEntryPointSymbol.ReturnTypeSyntax.Location); 2110diagnostics.Add(ErrorCode.ERR_NoEntryPoint, NoLocation.Singleton); 2651diagnostics.Add(code, infoTree.GetLocation(infoSpan));
Compiler\MethodCompiler.cs (1)
1584diagnosticsForThisMethod.Add(ErrorCode.ERR_TooManyLocals, method.GetFirstLocation());
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
367F.Diagnostics.Add(ErrorCode.ERR_BadAsyncReturn, F.Syntax.Location);
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
65diagnostics.Add(containsAwait ? ErrorCode.ERR_PossibleAsyncIteratorWithoutYield : ErrorCode.ERR_PossibleAsyncIteratorWithoutYieldOrAwait,
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
577_diagnostics.Add(ErrorCode.ERR_ByRefParameterInExpressionTree, location); 586_diagnostics.Add(ErrorCode.ERR_LambdaWithAttributesToExpressionTree, p.GetFirstLocation());
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
627_factory.Diagnostics.Add(ErrorCode.ERR_DynamicRequiredTypesMissing, NoLocation.Singleton);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
643F.Diagnostics.Add(ErrorCode.ERR_RefConditionalAndAwait, F.Syntax.Location);
Symbols\ConstraintsHelper.cs (2)
106diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportByRefLikeGenerics, location); 118diagnostics.Add(ErrorCode.ERR_ClassIsCombinedWithRefStruct, typeParameter.GetFirstLocation());
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
233diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportUnmanagedDefaultCallConv, errorLocation);
Symbols\MethodSymbol.cs (2)
1043diagnostics?.Add(ErrorCode.ERR_UnmanagedCallersOnlyRequiresStatic, node!.Location); 1049diagnostics?.Add(ErrorCode.ERR_UnmanagedCallersOnlyMethodOrTypeCannotBeGeneric, node!.Location);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
370diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, implementingMember.GetFirstLocation());
Symbols\Source\LambdaSymbol.cs (1)
297addTo.Add(ErrorCode.ERR_BuilderAttributeDisallowed, DiagnosticLocation);
Symbols\Source\LocalFunctionSymbol.cs (1)
209diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, arglistToken.GetLocation());
Symbols\Source\ModifierUtils.cs (4)
136diagnostics.Add(ErrorCode.ERR_PartialMisplaced, partialToken.GetLocation()); 141diagnostics.Add(ErrorCode.ERR_PartialMisplaced, errorLocation); 465diagnostics.Add(ErrorCode.ERR_BadMemberProtection, errorLocation); 481diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember, errorLocation);
Symbols\Source\ParameterHelpers.cs (8)
147diagnostics.Add(ErrorCode.ERR_ThisInBadContext, thisKeyword.GetLocation()); 162diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, arglistToken.GetLocation()); 188diagnostics.Add(ErrorCode.ERR_IllegalRefParam, refnessKeyword.GetLocation()); 674diagnostics.Add(ErrorCode.ERR_IllegalParams, paramsKeyword.GetLocation()); 689diagnostics.Add(ErrorCode.ERR_DefaultValueBeforeRequiredValue, loc); 749diagnostics.Add(ErrorCode.ERR_RefOutDefaultValue, refnessKeyword.GetLocation()); 755diagnostics.Add(ErrorCode.ERR_DefaultValueForParamsParameter, paramsKeyword.GetLocation()); 765diagnostics.Add(ErrorCode.ERR_DefaultValueForExtensionParameter, thisKeyword.GetLocation());
Symbols\Source\SourceAssemblySymbol.cs (6)
598diagnostics.Add(ErrorCode.WRN_DelaySignButNoKey, NoLocation.Singleton); 605diagnostics.Add(ErrorCode.ERR_PublicSignNetModule, NoLocation.Singleton); 609diagnostics.Add(ErrorCode.ERR_PublicSignButNoKey, NoLocation.Singleton); 2212diagnostics.Add(ErrorCode.ERR_InvalidFwdType, GetAssemblyAttributeLocationForDiagnostic(arguments.AttributeSyntaxOpt)); 2243diagnostics.Add(ErrorCode.ERR_InvalidFwdType, GetAssemblyAttributeLocationForDiagnostic(arguments.AttributeSyntaxOpt)); 2281diagnostics.Add(ErrorCode.ERR_CannotPassNullForFriendAssembly, GetAssemblyAttributeLocationForDiagnostic(nodeOpt));
Symbols\Source\SourceComplexParameterSymbol.cs (5)
929diagnostics.Add(ErrorCode.ERR_ParamDefaultValueDiffersFromAttribute, syntax.Location); 1406diagnostics.Add(ErrorCode.ERR_OutAttrOnRefParam, this.GetFirstLocation()); 1413diagnostics.Add(ErrorCode.ERR_InAttrOnOutParam, this.GetFirstLocation()); 1420diagnostics.Add(ErrorCode.ERR_OutAttrOnInParam, this.GetFirstLocation()); 1427diagnostics.Add(ErrorCode.ERR_OutAttrOnRefReadonlyParam, this.GetFirstLocation());
Symbols\Source\SourceConstructorSymbol.cs (2)
46diagnostics.Add(ErrorCode.ERR_MemberNeedsType, location); 177diagnostics.Add(ErrorCode.ERR_ConstructorInStaticClass, location);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
75diagnostics.Add(ErrorCode.ERR_BadVarargs, location);
Symbols\Source\SourceCustomEventSymbol.cs (2)
144diagnostics.Add(ErrorCode.ERR_ExplicitEventFieldImpl, this.GetFirstLocation()); 155diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, this.GetFirstLocation());
Symbols\Source\SourceDestructorSymbol.cs (2)
53diagnostics.Add(ErrorCode.ERR_DestructorInStaticClass, location); 57diagnostics.Add(ErrorCode.ERR_OnlyClassesCanContainDestructors, location);
Symbols\Source\SourceFieldLikeEventSymbol.cs (3)
92diagnostics.Add(ErrorCode.ERR_FieldlikeEventsInRoStruct, this.GetFirstLocation()); 101diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, this.GetFirstLocation()); 108diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, this.GetFirstLocation());
Symbols\Source\SourceFieldSymbol.cs (1)
70diagnostics.Add(ErrorCode.ERR_FieldsInRoStruct, ErrorLocation);
Symbols\Source\SourceMemberContainerSymbol.cs (13)
1934diagnostics.Add(ErrorCode.ERR_CloneDisallowedInRecord, member.GetFirstLocation()); 2244diagnostics.Add(ErrorCode.ERR_InconsistentIndexerNames, indexer.GetFirstLocation()); 2646diagnostics.Add(ErrorCode.ERR_ScriptsAndSubmissionsCannotHaveRequiredMembers, member.GetFirstLocation()); 3661diagnostics.Add(ErrorCode.ERR_PartialMethodOnlyOneActual, currentMethod.GetFirstLocation()); 3667diagnostics.Add(ErrorCode.ERR_PartialMethodOnlyOneLatent, currentMethod.GetFirstLocation()); 3681diagnostics.Add(ErrorCode.ERR_PartialPropertyDuplicateImplementation, currentProperty.GetFirstLocation()); 3686diagnostics.Add(ErrorCode.ERR_PartialPropertyDuplicateDefinition, currentProperty.GetFirstLocation()); 4013diagnostics.Add(ErrorCode.ERR_InterfacesCantContainConstructors, member.GetFirstLocation()); 4020diagnostics.Add(ErrorCode.ERR_OnlyClassesCanContainDestructors, member.GetFirstLocation()); 4063diagnostics.Add(ErrorCode.ERR_EnumsCantContainDefaultConstructor, location); 4070diagnostics.Add(ErrorCode.ERR_NonPublicParameterlessStructConstructor, location); 4102diagnostics.Add(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, GetFirstLocation()); 4314diagnostics.Add(ErrorCode.ERR_RecordAmbigCtor, copyCtor.GetFirstLocation());
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
970(diagnostics, overriddenEvent, overridingEvent, location) => diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInTypeOnOverride, location), 1022diagnostics.Add(ErrorCode.ERR_OverrideFinalizeDeprecated, overridingMemberLocation); 1218=> diagnostics.Add(topLevel ?
Symbols\Source\SourceMemberFieldSymbol.cs (6)
367diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, ErrorLocation); 372diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, ErrorLocation); 495diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, ErrorLocation); 498diagnostics.Add(ErrorCode.ERR_RefFieldInNonRefStruct, ErrorLocation); 565diagnostics.Add(ErrorCode.ERR_FixedNotInStruct, ErrorLocation); 570diagnostics.Add(ErrorCode.ERR_FixedFieldMustNotBeRef, ErrorLocation);
Symbols\Source\SourceMemberMethodSymbol.cs (2)
1106diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation, location); 1111diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportStaticAbstractMembersInInterfaces, location);
Symbols\Source\SourceMethodSymbol.cs (2)
67diagnostics.Add(ErrorCode.ERR_BadAsyncArgType, getLocation(parameter, location)); 71diagnostics.Add(ErrorCode.ERR_UnsafeAsyncArgType, getLocation(parameter, location));
Symbols\Source\SourceMethodSymbolWithAttributes.cs (9)
1148diagnostics.Add(ErrorCode.ERR_InterceptorGlobalNamespace, attributeLocation); 1199diagnostics.Add(ErrorCode.ERR_InterceptorMethodMustBeOrdinary, attributeLocation); 1207diagnostics.Add(ErrorCode.ERR_InterceptorCannotUseUnmanagedCallersOnly, attributeLocation); 1403diagnostics.Add(ErrorCode.ERR_CannotUseRefInUnmanagedCallersOnly, syntax.Location); 1478diagnostics.Add(ErrorCode.ERR_ComImportWithUserCtor, this.GetFirstLocation()); 1539diagnostics.Add(ErrorCode.ERR_BadAsyncReturn, errorLocation); 1559diagnostics.Add(ErrorCode.ERR_SecurityCriticalOrSecuritySafeCriticalOnAsyncInClassOrStruct, errorLocation); 1568diagnostics.Add(ErrorCode.ERR_SynchronizedAsyncMethod, errorLocation); 1594diagnostics.Add(ErrorCode.ERR_MultipleEnumeratorCancellationAttributes, errorLocation);
Symbols\Source\SourceNamedTypeSymbol.cs (9)
1824diagnostics.Add(ErrorCode.ERR_InvalidInlineArrayLayout, GetFirstLocation()); 1833diagnostics.Add(ErrorCode.ERR_InlineArrayUnsupportedElementFieldModifier, elementField.TryGetFirstLocation() ?? GetFirstLocation()); 1847diagnostics.Add(ErrorCode.WRN_InlineArrayIndexerNotUsed, indexer.TryGetFirstLocation() ?? GetFirstLocation()); 1855diagnostics.Add(ErrorCode.WRN_InlineArraySliceNotUsed, slice.TryGetFirstLocation() ?? GetFirstLocation()); 1878diagnostics.Add(ErrorCode.WRN_InlineArrayConversionOperatorNotUsed, conversion.TryGetFirstLocation() ?? GetFirstLocation()); 1887diagnostics.Add(ErrorCode.WRN_InlineArrayNotSupportedByLanguage, elementField.TryGetFirstLocation() ?? GetFirstLocation()); 1891diagnostics.Add(ErrorCode.WRN_InlineArrayNotSupportedByLanguage, GetFirstLocation()); 1897diagnostics.Add(ErrorCode.ERR_InvalidInlineArrayFields, GetFirstLocation()); 1902diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportInlineArrayTypes, GetFirstLocation());
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
132diagnostics.Add(ErrorCode.ERR_BadRecordBase, baseLocation); 137diagnostics.Add(ErrorCode.ERR_BadInheritanceFromRecord, baseLocation);
Symbols\Source\SourceNamespaceSymbol.cs (1)
373diagnostics.Add(ErrorCode.ERR_NoNamespacePrivate, symbol.GetFirstLocationOrNone());
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (3)
54diagnostics.Add(ErrorCode.WRN_FinalizeMethod, _location); 63diagnostics.Add(ErrorCode.ERR_PartialMemberNotExplicit, _location); 68diagnostics.Add(ErrorCode.ERR_PartialMemberOnlyInPartialClass, _location);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (15)
241diagnostics.Add(ErrorCode.ERR_BadExtensionMeth, _location); 482diagnostics.Add(ErrorCode.ERR_PartialMethodReturnTypeDifference, implementation.GetFirstLocation()); 492diagnostics.Add(ErrorCode.ERR_PartialMemberRefReturnDifference, implementation.GetFirstLocation()); 497diagnostics.Add(ErrorCode.ERR_PartialMemberStaticDifference, implementation.GetFirstLocation()); 502diagnostics.Add(ErrorCode.ERR_PartialMemberReadOnlyDifference, implementation.GetFirstLocation()); 507diagnostics.Add(ErrorCode.ERR_PartialMethodExtensionDifference, implementation.GetFirstLocation()); 512diagnostics.Add(ErrorCode.ERR_PartialMemberUnsafeDifference, implementation.GetFirstLocation()); 517diagnostics.Add(ErrorCode.ERR_PartialMemberParamsDifference, implementation.GetFirstLocation()); 523diagnostics.Add(ErrorCode.ERR_PartialMemberAccessibilityDifference, implementation.GetFirstLocation()); 531diagnostics.Add(ErrorCode.ERR_PartialMemberExtendedModDifference, implementation.GetFirstLocation()); 559diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, implementingMethod.GetFirstLocation()); 809diagnostics.Add(ErrorCode.ERR_PartialMemberCannotBeAbstract, location); 886diagnostics.Add(ErrorCode.ERR_BadAsyncLacksBody, location); 902diagnostics.Add(ErrorCode.ERR_BadVarargs, location); 906diagnostics.Add(ErrorCode.ERR_VarargsAsync, location);
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
568diagnostics.Add(ErrorCode.ERR_BadInitAccessor, location); 851diagnostics.Add(ErrorCode.ERR_PartialMemberAccessibilityDifference, implementationAccessor.GetFirstLocation()); 856diagnostics.Add(ErrorCode.ERR_PartialMemberReadOnlyDifference, implementationAccessor.GetFirstLocation());
Symbols\Source\SourcePropertySymbol.cs (11)
529diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType, Location); 563diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, arglistToken.GetLocation()); 634diagnostics.Add(ErrorCode.ERR_PartialPropertyTypeDifference, implementation.GetFirstLocation()); 645diagnostics.Add(ErrorCode.ERR_PartialMemberRefReturnDifference, implementation.GetFirstLocation()); 658diagnostics.Add(ErrorCode.ERR_PartialPropertyRequiredDifference, implementation.GetFirstLocation()); 663diagnostics.Add(ErrorCode.ERR_PartialMemberStaticDifference, implementation.GetFirstLocation()); 668diagnostics.Add(ErrorCode.ERR_PartialMemberReadOnlyDifference, implementation.GetFirstLocation()); 673diagnostics.Add(ErrorCode.ERR_PartialMemberUnsafeDifference, implementation.GetFirstLocation()); 678diagnostics.Add(ErrorCode.ERR_PartialMemberParamsDifference, implementation.GetFirstLocation()); 684diagnostics.Add(ErrorCode.ERR_PartialMemberAccessibilityDifference, implementation.GetFirstLocation()); 692diagnostics.Add(ErrorCode.ERR_PartialMemberExtendedModDifference, implementation.GetFirstLocation());
Symbols\Source\SourcePropertySymbolBase.cs (12)
291diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface, Location); 295diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty, Location); 700diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, Location); 711diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct, Location); 725diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, Location); 731diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet, Location); 747diagnostics.Add(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, _setMethod.GetFirstLocation()); 776diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, Location); 781diagnostics.Add(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor, _setMethod!.GetFirstLocation()); 900diagnostics.Add(ErrorCode.ERR_PartialMemberOnlyInPartialClass, location); 904diagnostics.Add(ErrorCode.ERR_PartialMemberNotExplicit, location); 908diagnostics.Add(ErrorCode.ERR_PartialMemberCannotBeAbstract, location);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (12)
59diagnostics.Add(ErrorCode.ERR_InterfacesCantContainConversionOrEqualityOperators, this.GetFirstLocation()); 336diagnostics.Add(ErrorCode.ERR_IllegalRefParam, this.GetFirstLocation()); 470diagnostics.Add(IsAbstract || IsVirtual ? ErrorCode.ERR_AbstractConversionNotInvolvingContainedType : ErrorCode.ERR_ConversionNotInvolvingContainedType, this.GetFirstLocation()); 481diagnostics.Add(ErrorCode.ERR_IdentityConversion, this.GetFirstLocation()); 594diagnostics.Add(ErrorCode.ERR_OperatorCantReturnVoid, this.GetFirstLocation()); 606diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractUnaryOperatorSignature : ErrorCode.ERR_BadUnaryOperatorSignature, this.GetFirstLocation()); 620diagnostics.Add(ErrorCode.ERR_OpTFRetType, this.GetFirstLocation()); 626diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractUnaryOperatorSignature : ErrorCode.ERR_BadUnaryOperatorSignature, this.GetFirstLocation()); 676diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractIncDecSignature : ErrorCode.ERR_BadIncDecSignature, this.GetFirstLocation()); 685diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractIncDecRetType : ErrorCode.ERR_BadIncDecRetType, this.GetFirstLocation()); 725diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractShiftOperatorSignature : ErrorCode.ERR_BadShiftOperatorSignature, this.GetFirstLocation()); 744diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractBinaryOperatorSignature : ErrorCode.ERR_BadBinaryOperatorSignature, this.GetFirstLocation());
Symbols\Symbol.cs (1)
1501diagnostics.Add(ErrorCode.ERR_BlockBodyAndExpressionBody, syntax.GetLocation());
Symbols\VarianceSafety.cs (1)
92diagnostics.Add(ErrorCode.ERR_VarianceInterfaceNesting, member.GetFirstLocation());