70 references to Error
Microsoft.CodeAnalysis.CSharp (70)
Binder\Binder_AnonymousTypes.cs (1)
76Error(diagnostics, ErrorCode.ERR_AnonymousTypeDuplicatePropertyName, fieldInitializer);
Binder\Binder_Constraints.cs (1)
552Error(diagnostics, ErrorCode.ERR_DynamicTypeAsBound, syntax);
Binder\Binder_Deconstruct.cs (4)
60Error(diagnostics, ErrorCode.ERR_DeclarationExpressionNotPermitted, declaration); 64Error(diagnostics, ErrorCode.ERR_DeclarationExpressionNotPermitted, declaration); 758Error(diagnostics, ErrorCode.ERR_DeconstructionVarFormDisallowsSpecificType, component.Designation); 781Error(diagnostics, ErrorCode.ERR_TupleElementNamesInDeconstruction, arg.NameColon);
Binder\Binder_Expressions.cs (21)
523Error(diagnostics, ErrorCode.ERR_IllegalArglist, node); 896Error(diagnostics, ErrorCode.ERR_DeclarationExpressionNotPermitted, node); 1283Error(diagnostics, ErrorCode.ERR_ArgsInvalid, node); 1956Error(diagnostics, ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterInMember, node); 1960Error(diagnostics, ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, node); 2264Error(diagnostics, inStaticContext ? ErrorCode.ERR_ThisInStaticMeth : ErrorCode.ERR_ThisInBadContext, node); 2307Error(diagnostics, ErrorCode.ERR_NoBaseClass, node); 3348Error(diagnostics, ErrorCode.ERR_MissingArraySize, firstRankSpecifier); 3363Error(diagnostics, ErrorCode.ERR_InvalidArray, arg); 3389Error(diagnostics, ErrorCode.ERR_NegativeArraySize, dimension); 3419Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, node); 3446Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, node); 3521Error(diagnostics, ErrorCode.ERR_ArrayInitializerExpected, expression); 3674Error(diagnostics, errorCode, errorNode ?? node); 3792Error(diagnostics, ErrorCode.ERR_BadStackAllocExpr, typeSyntax); 3819Error(diagnostics, ErrorCode.ERR_BadStackAllocExpr, typeSyntax); 3849Error(diagnostics, ErrorCode.ERR_NegativeStackAllocSize, countSyntax); 3855Error(diagnostics, ErrorCode.ERR_MissingArraySize, rankSpecifiers[0]); 4905Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, memberInitializer); 5417Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, elementInitializer); 5462Error(diagnostics, ErrorCode.ERR_EmptyElementInitializer, elementInitializer);
Binder\Binder_Lambda.cs (2)
164Error(diagnostics, ErrorCode.ERR_IllegalVarArgs, p); 275Error(diagnostics, syntax.Kind() == SyntaxKind.SimpleLambdaExpression ? ErrorCode.ERR_AttributesRequireParenthesizedLambdaExpression : ErrorCode.ERR_AttributesNotAllowed, attributeList);
Binder\Binder_Operators.cs (18)
235Error(diagnostics, ErrorCode.ERR_VoidError, node); 477Error(diagnostics, ErrorCode.ERR_PossibleBadNegCast, node); 486Error(diagnostics, ErrorCode.ERR_PossibleBadNegCast, node); 617Error(diagnostics, ErrorCode.ERR_VoidError, node); 1794Error(diagnostics, ErrorCode.ERR_IntDivByZero, syntax); 1833Error(diagnostics, ErrorCode.ERR_DecConstError, syntax); 1869Error(diagnostics, ErrorCode.ERR_CheckedOverflow, syntax); 2322Error(diagnostics, ErrorCode.ERR_VoidError, node); 2457Error(diagnostics, ErrorCode.ERR_PtrExpected, node); 2471Error(diagnostics, ErrorCode.ERR_VoidError, node); 2517Error(diagnostics, isFixedStatementAddressOfExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedNeeded, node); 2859Error(diagnostics, ErrorCode.ERR_CheckedOverflow, syntax); 3122Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 3164Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node); 3641Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 3650Error(diagnostics, ErrorCode.ERR_TypelessTupleInAs, node); 3678Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node); 3733Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node);
Binder\Binder_Patterns.cs (1)
1515Error(diagnostics, ErrorCode.ERR_InvalidNameInSubpattern, expr);
Binder\Binder_Statements.cs (19)
54Error(diagnostics, ErrorCode.ERR_AttributesNotAllowed, attributeList); 531Error(diagnostics, ErrorCode.ERR_InvalidGotoCase, node); 654Error(diagnostics, ErrorCode.ERR_IllegalStatement, syntax); 810Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableCannotBeConst, declarationNode); 834Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, declarationNode); 880Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableWithNoInitializer, errorSyntax); 925Error(diagnostics, ErrorCode.ERR_InitializeByValueVariableWithReference, node); 937Error(diagnostics, ErrorCode.ERR_ByReferenceVariableMustBeInitialized, node); 942Error(diagnostics, ErrorCode.ERR_InitializeByReferenceVariableWithValue, node); 1081Error(localDiagnostics, ErrorCode.ERR_ImplicitlyTypedLocalCannotBeFixed, declarator); 1090Error(localDiagnostics, declTypeOpt.Type.IsFunctionPointer() ? ErrorCode.ERR_CannotUseFunctionPointerAsFixedLocal : ErrorCode.ERR_BadFixedInitType, declarator); 1120Error(localDiagnostics, ErrorCode.ERR_FixedMustInit, declarator); 1858Error(diagnostics, ErrorCode.ERR_AttributesNotAllowed, node.AttributeLists[0]); 2733Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, nodeOpt); 2803Error(diagnostics, ErrorCode.ERR_NoBreakOrCont, node); 2814Error(diagnostics, ErrorCode.ERR_NoBreakOrCont, node); 3017Error(diagnostics, ErrorCode.ERR_CantReturnVoid, expressionSyntax); 3162Error(diagnostics, ErrorCode.ERR_BadExceptionType, declaration.Type); 3264Error(diagnostics, errorCode, filter.FilterExpression);
Binder\Binder_Symbols.cs (1)
664Error(diagnostics, ErrorCode.ERR_ArraySizeInDeclaration, rankSpecifier);
Binder\ForEachLoopBinder.cs (2)
368Error(diagnostics, ErrorCode.ERR_MustDeclareForeachIteration, variables); 386Error(diagnostics, ErrorCode.ERR_MustDeclareForeachIteration, variables);