201 references to Add
Microsoft.CodeAnalysis.CSharp (201)
Binder\Binder.ValueChecks.cs (2)
1048diagnostics.Add(ErrorCode.ERR_RefLocalOrParamExpected, node.Location); 5304diagnostics.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()); 4874diagnostics.Add(ErrorCode.ERR_NoDynamicPhantomOnBaseCtor, errorLocation); 5018diagnostics.Add(ErrorCode.ERR_ChainingToSetsRequiredMembersRequiresSetsRequiredMembers, errorLocation); 5064diagnostics.Add(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, errorLocation); 5073diagnostics.Add(ErrorCode.ERR_CopyConstructorMustInvokeBaseCopyConstructor, errorLocation); 5390diagnostics.Add(ErrorCode.ERR_MethodNameExpected, argument.Syntax.Location); 5451diagnostics.Add(ErrorCode.ERR_MethodNameExpected, argument.Syntax.Location); 5919diagnostics.Add(ErrorCode.ERR_InterpolatedStringsReferencingInstanceCannotBeInObjectInitializers, argument.Syntax.Location); 8613diagnostics.Add(ErrorCode.ERR_RuntimeDoesNotSupportRefFields, node.Location);
Binder\Binder_Invocation.cs (2)
1610diagnostics.Add(ErrorCode.ERR_BadAttributeArgument, syntax.Location); 2259diagnostics.Add(ErrorCode.ERR_NameofExtensionMethod, methodGroup.Syntax.Location);
Binder\Binder_Operators.cs (1)
4391diagnostics.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)
1467diagnostics.Add(ErrorCode.ERR_VoidAssignment, op1.Syntax.Location); 2224diagnostics.Add(ErrorCode.ERR_InternalError, syntax.Location);
Binder\Binder_Symbols.cs (1)
2613return 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)
1878diagnostics.Add(ErrorCode.ERR_SimpleProgramNotAnExecutable, simpleProgramEntryPointSymbol.ReturnTypeSyntax.Location); 2108diagnostics.Add(ErrorCode.ERR_NoEntryPoint, NoLocation.Singleton); 2649diagnostics.Add(code, infoTree.GetLocation(infoSpan));
Compiler\MethodCompiler.cs (1)
1591diagnosticsForThisMethod.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)
661F.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 (14)
1936diagnostics.Add(ErrorCode.ERR_CloneDisallowedInRecord, member.GetFirstLocation()); 2246diagnostics.Add(ErrorCode.ERR_InconsistentIndexerNames, indexer.GetFirstLocation()); 2658diagnostics.Add(ErrorCode.ERR_ScriptsAndSubmissionsCannotHaveRequiredMembers, member.GetFirstLocation()); 3688diagnostics.Add(ErrorCode.ERR_PartialMethodOnlyOneActual, currentMethod.GetFirstLocation()); 3694diagnostics.Add(ErrorCode.ERR_PartialMethodOnlyOneLatent, currentMethod.GetFirstLocation()); 3708diagnostics.Add(ErrorCode.ERR_PartialPropertyDuplicateImplementation, currentProperty.GetFirstLocation()); 3713diagnostics.Add(ErrorCode.ERR_PartialPropertyDuplicateDefinition, currentProperty.GetFirstLocation()); 3719diagnostics.Add(ErrorCode.ERR_PartialPropertyDuplicateInitializer, currentProperty.GetFirstLocation()); 4057diagnostics.Add(ErrorCode.ERR_InterfacesCantContainConstructors, member.GetFirstLocation()); 4064diagnostics.Add(ErrorCode.ERR_OnlyClassesCanContainDestructors, member.GetFirstLocation()); 4107diagnostics.Add(ErrorCode.ERR_EnumsCantContainDefaultConstructor, location); 4114diagnostics.Add(ErrorCode.ERR_NonPublicParameterlessStructConstructor, location); 4146diagnostics.Add(ErrorCode.ERR_StructHasInitializersAndNoDeclaredConstructor, GetFirstLocation()); 4358diagnostics.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)
1827diagnostics.Add(ErrorCode.ERR_InvalidInlineArrayLayout, GetFirstLocation()); 1836diagnostics.Add(ErrorCode.ERR_InlineArrayUnsupportedElementFieldModifier, elementField.TryGetFirstLocation() ?? GetFirstLocation()); 1850diagnostics.Add(ErrorCode.WRN_InlineArrayIndexerNotUsed, indexer.TryGetFirstLocation() ?? GetFirstLocation()); 1858diagnostics.Add(ErrorCode.WRN_InlineArraySliceNotUsed, slice.TryGetFirstLocation() ?? GetFirstLocation()); 1881diagnostics.Add(ErrorCode.WRN_InlineArrayConversionOperatorNotUsed, conversion.TryGetFirstLocation() ?? GetFirstLocation()); 1890diagnostics.Add(ErrorCode.WRN_InlineArrayNotSupportedByLanguage, elementField.TryGetFirstLocation() ?? GetFirstLocation()); 1894diagnostics.Add(ErrorCode.WRN_InlineArrayNotSupportedByLanguage, GetFirstLocation()); 1900diagnostics.Add(ErrorCode.ERR_InvalidInlineArrayFields, GetFirstLocation()); 1905diagnostics.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)
570diagnostics.Add(ErrorCode.ERR_BadInitAccessor, location); 853diagnostics.Add(ErrorCode.ERR_PartialMemberAccessibilityDifference, implementationAccessor.GetFirstLocation()); 858diagnostics.Add(ErrorCode.ERR_PartialMemberReadOnlyDifference, implementationAccessor.GetFirstLocation());
Symbols\Source\SourcePropertySymbol.cs (11)
588diagnostics.Add(ErrorCode.ERR_IndexerCantHaveVoidType, Location); 622diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, arglistToken.GetLocation()); 693diagnostics.Add(ErrorCode.ERR_PartialPropertyTypeDifference, implementation.GetFirstLocation()); 704diagnostics.Add(ErrorCode.ERR_PartialMemberRefReturnDifference, implementation.GetFirstLocation()); 717diagnostics.Add(ErrorCode.ERR_PartialPropertyRequiredDifference, implementation.GetFirstLocation()); 722diagnostics.Add(ErrorCode.ERR_PartialMemberStaticDifference, implementation.GetFirstLocation()); 727diagnostics.Add(ErrorCode.ERR_PartialMemberReadOnlyDifference, implementation.GetFirstLocation()); 732diagnostics.Add(ErrorCode.ERR_PartialMemberUnsafeDifference, implementation.GetFirstLocation()); 737diagnostics.Add(ErrorCode.ERR_PartialMemberParamsDifference, implementation.GetFirstLocation()); 743diagnostics.Add(ErrorCode.ERR_PartialMemberAccessibilityDifference, implementation.GetFirstLocation()); 751diagnostics.Add(ErrorCode.ERR_PartialMemberExtendedModDifference, implementation.GetFirstLocation());
Symbols\Source\SourcePropertySymbolBase.cs (13)
307diagnostics.Add(ErrorCode.ERR_InstancePropertyInitializerInInterface, Location); 311diagnostics.Add(ErrorCode.ERR_InitializerOnNonAutoProperty, Location); 868diagnostics.Add(ErrorCode.ERR_RefReturningPropertiesCannotBeRequired, Location); 877diagnostics.Add(ErrorCode.ERR_AutoPropsInRoStruct, Location); 891diagnostics.Add(ErrorCode.ERR_AutoPropertyCannotBeRefReturning, Location); 901diagnostics.Add(ErrorCode.ERR_AutoPropertyMustOverrideSet, Location); 913diagnostics.Add(ErrorCode.ERR_InterfacesCantContainFields, Location); 928diagnostics.Add(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, _setMethod.GetFirstLocation()); 957diagnostics.Add(ErrorCode.ERR_RefPropertyMustHaveGetAccessor, Location); 965diagnostics.Add(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor, _setMethod!.GetFirstLocation()); 1084diagnostics.Add(ErrorCode.ERR_PartialMemberOnlyInPartialClass, location); 1088diagnostics.Add(ErrorCode.ERR_PartialMemberNotExplicit, location); 1092diagnostics.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());