75 references to Error
Microsoft.CodeAnalysis.CSharp (75)
Binder\Binder_AnonymousTypes.cs (1)
76Error(diagnostics, ErrorCode.ERR_AnonymousTypeDuplicatePropertyName, fieldInitializer);
Binder\Binder_Constraints.cs (2)
324Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportByRefLikeGenerics, allowsConstraint); 594Error(diagnostics, ErrorCode.ERR_DynamicTypeAsBound, syntax);
Binder\Binder_Deconstruct.cs (4)
60Error(diagnostics, ErrorCode.ERR_DeclarationExpressionNotPermitted, declaration); 64Error(diagnostics, ErrorCode.ERR_DeclarationExpressionNotPermitted, declaration); 759Error(diagnostics, ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, component.Designation); 782Error(diagnostics, ErrorCode.ERR_TupleElementNamesInDeconstruction, arg.NameColon);
Binder\Binder_Expressions.cs (25)
575Error(diagnostics, ErrorCode.ERR_IllegalArglist, node); 965Error(diagnostics, ErrorCode.ERR_DeclarationExpressionNotPermitted, node); 1352Error(diagnostics, ErrorCode.ERR_ArgsInvalid, node); 2151Error(diagnostics, ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterInMember, node); 2155Error(diagnostics, ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, node); 2566Error(diagnostics, inStaticContext ? ErrorCode.ERR_ThisInStaticMeth : ErrorCode.ERR_ThisInBadContext, node); 2624Error(diagnostics, ErrorCode.ERR_NoBaseClass, node); 4124Error(diagnostics, ErrorCode.ERR_MissingArraySize, firstRankSpecifier); 4139Error(diagnostics, ErrorCode.ERR_InvalidArray, arg); 4165Error(diagnostics, ErrorCode.ERR_NegativeArraySize, dimension); 4195Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, node); 4222Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, node); 4297Error(diagnostics, ErrorCode.ERR_ArrayInitializerExpected, expression); 4450Error(diagnostics, errorCode, errorNode ?? node); 4568Error(diagnostics, ErrorCode.ERR_BadStackAllocExpr, typeSyntax); 4595Error(diagnostics, ErrorCode.ERR_BadStackAllocExpr, typeSyntax); 4625Error(diagnostics, ErrorCode.ERR_NegativeStackAllocSize, countSyntax); 4631Error(diagnostics, ErrorCode.ERR_MissingArraySize, rankSpecifiers[0]); 5347Error(diagnostics, ErrorCode.ERR_BadSpreadInCatchFilter, syntax); 5837Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, memberInitializer); 5865Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, memberInitializer); 6427Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, elementInitializer); 6472Error(diagnostics, ErrorCode.ERR_EmptyElementInitializer, elementInitializer); 9592Error(diagnostics, ErrorCode.ERR_NamedArgumentForInlineArray, node); 9668Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportInlineArrayTypes, node);
Binder\Binder_Lambda.cs (2)
176Error(diagnostics, ErrorCode.ERR_IllegalVarArgs, p); 285Error(diagnostics, syntax.Kind() == SyntaxKind.SimpleLambdaExpression ? ErrorCode.ERR_AttributesRequireParenthesizedLambdaExpression : ErrorCode.ERR_AttributesNotAllowed, attributeList);
Binder\Binder_Operators.cs (18)
310Error(diagnostics, ErrorCode.ERR_VoidError, node); 912Error(diagnostics, ErrorCode.ERR_PossibleBadNegCast, node); 921Error(diagnostics, ErrorCode.ERR_PossibleBadNegCast, node); 1057Error(diagnostics, ErrorCode.ERR_VoidError, node); 2806Error(diagnostics, ErrorCode.ERR_IntDivByZero, syntax); 2845Error(diagnostics, ErrorCode.ERR_DecConstError, syntax); 2881Error(diagnostics, ErrorCode.ERR_CheckedOverflow, syntax); 3407Error(diagnostics, ErrorCode.ERR_VoidError, node); 4088Error(diagnostics, ErrorCode.ERR_PtrExpected, node); 4102Error(diagnostics, ErrorCode.ERR_VoidError, node); 4148Error(diagnostics, isFixedStatementAddressOfExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedNeeded, node); 4507Error(diagnostics, ErrorCode.ERR_CheckedOverflow, syntax); 4770Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 4812Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node); 5318Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 5327Error(diagnostics, ErrorCode.ERR_TypelessTupleInAs, node); 5355Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node); 5410Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node);
Binder\Binder_Patterns.cs (1)
1536Error(diagnostics, ErrorCode.ERR_InvalidNameInSubpattern, expr);
Binder\Binder_Statements.cs (19)
55Error(diagnostics, ErrorCode.ERR_AttributesNotAllowed, attributeList); 534Error(diagnostics, ErrorCode.ERR_InvalidGotoCase, node); 659Error(diagnostics, ErrorCode.ERR_IllegalStatement, syntax); 814Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableCannotBeConst, declarationNode); 838Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, declarationNode); 884Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableWithNoInitializer, errorSyntax); 929Error(diagnostics, ErrorCode.ERR_InitializeByValueVariableWithReference, node); 941Error(diagnostics, ErrorCode.ERR_ByReferenceVariableMustBeInitialized, node); 946Error(diagnostics, ErrorCode.ERR_InitializeByReferenceVariableWithValue, node); 1085Error(localDiagnostics, ErrorCode.ERR_ImplicitlyTypedLocalCannotBeFixed, declarator); 1094Error(localDiagnostics, declTypeOpt.Type.IsFunctionPointer() ? ErrorCode.ERR_CannotUseFunctionPointerAsFixedLocal : ErrorCode.ERR_BadFixedInitType, declarator); 1124Error(localDiagnostics, ErrorCode.ERR_FixedMustInit, declarator); 1911Error(diagnostics, ErrorCode.ERR_AttributesNotAllowed, node.AttributeLists[0]); 2880Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, nodeOpt); 2950Error(diagnostics, ErrorCode.ERR_NoBreakOrCont, node); 2961Error(diagnostics, ErrorCode.ERR_NoBreakOrCont, node); 3164Error(diagnostics, ErrorCode.ERR_CantReturnVoid, expressionSyntax); 3309Error(diagnostics, ErrorCode.ERR_BadExceptionType, declaration.Type); 3413Error(diagnostics, errorCode, filter.FilterExpression);
Binder\Binder_Symbols.cs (1)
675Error(diagnostics, ErrorCode.ERR_ArraySizeInDeclaration, rankSpecifier);
Binder\ForEachLoopBinder.cs (2)
400Error(diagnostics, ErrorCode.ERR_MustDeclareForeachIteration, variables); 418Error(diagnostics, ErrorCode.ERR_MustDeclareForeachIteration, variables);