74 references to Error
Microsoft.CodeAnalysis.CSharp (74)
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 (24)
549Error(diagnostics, ErrorCode.ERR_IllegalArglist, node); 939Error(diagnostics, ErrorCode.ERR_DeclarationExpressionNotPermitted, node); 1326Error(diagnostics, ErrorCode.ERR_ArgsInvalid, node); 2192Error(diagnostics, ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterInMember, node); 2196Error(diagnostics, ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, node); 2509Error(diagnostics, inStaticContext ? ErrorCode.ERR_ThisInStaticMeth : ErrorCode.ERR_ThisInBadContext, node); 2567Error(diagnostics, ErrorCode.ERR_NoBaseClass, node); 4067Error(diagnostics, ErrorCode.ERR_MissingArraySize, firstRankSpecifier); 4082Error(diagnostics, ErrorCode.ERR_InvalidArray, arg); 4108Error(diagnostics, ErrorCode.ERR_NegativeArraySize, dimension); 4138Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, node); 4165Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, node); 4240Error(diagnostics, ErrorCode.ERR_ArrayInitializerExpected, expression); 4393Error(diagnostics, errorCode, errorNode ?? node); 4511Error(diagnostics, ErrorCode.ERR_BadStackAllocExpr, typeSyntax); 4538Error(diagnostics, ErrorCode.ERR_BadStackAllocExpr, typeSyntax); 4568Error(diagnostics, ErrorCode.ERR_NegativeStackAllocSize, countSyntax); 4574Error(diagnostics, ErrorCode.ERR_MissingArraySize, rankSpecifiers[0]); 5772Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, memberInitializer); 5800Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, memberInitializer); 6362Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, elementInitializer); 6407Error(diagnostics, ErrorCode.ERR_EmptyElementInitializer, elementInitializer); 9449Error(diagnostics, ErrorCode.ERR_NamedArgumentForInlineArray, node); 9525Error(diagnostics, ErrorCode.ERR_RuntimeDoesNotSupportInlineArrayTypes, node);
Binder\Binder_Lambda.cs (2)
175Error(diagnostics, ErrorCode.ERR_IllegalVarArgs, p); 284Error(diagnostics, syntax.Kind() == SyntaxKind.SimpleLambdaExpression ? ErrorCode.ERR_AttributesRequireParenthesizedLambdaExpression : ErrorCode.ERR_AttributesNotAllowed, attributeList);
Binder\Binder_Operators.cs (18)
301Error(diagnostics, ErrorCode.ERR_VoidError, node); 876Error(diagnostics, ErrorCode.ERR_PossibleBadNegCast, node); 885Error(diagnostics, ErrorCode.ERR_PossibleBadNegCast, node); 1017Error(diagnostics, ErrorCode.ERR_VoidError, node); 2673Error(diagnostics, ErrorCode.ERR_IntDivByZero, syntax); 2712Error(diagnostics, ErrorCode.ERR_DecConstError, syntax); 2748Error(diagnostics, ErrorCode.ERR_CheckedOverflow, syntax); 3264Error(diagnostics, ErrorCode.ERR_VoidError, node); 3915Error(diagnostics, ErrorCode.ERR_PtrExpected, node); 3929Error(diagnostics, ErrorCode.ERR_VoidError, node); 3975Error(diagnostics, isFixedStatementAddressOfExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedNeeded, node); 4329Error(diagnostics, ErrorCode.ERR_CheckedOverflow, syntax); 4592Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 4634Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node); 5140Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 5149Error(diagnostics, ErrorCode.ERR_TypelessTupleInAs, node); 5177Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node); 5232Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node);
Binder\Binder_Patterns.cs (1)
1525Error(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); 809Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableCannotBeConst, declarationNode); 833Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, declarationNode); 879Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableWithNoInitializer, errorSyntax); 924Error(diagnostics, ErrorCode.ERR_InitializeByValueVariableWithReference, node); 936Error(diagnostics, ErrorCode.ERR_ByReferenceVariableMustBeInitialized, node); 941Error(diagnostics, ErrorCode.ERR_InitializeByReferenceVariableWithValue, node); 1080Error(localDiagnostics, ErrorCode.ERR_ImplicitlyTypedLocalCannotBeFixed, declarator); 1089Error(localDiagnostics, declTypeOpt.Type.IsFunctionPointer() ? ErrorCode.ERR_CannotUseFunctionPointerAsFixedLocal : ErrorCode.ERR_BadFixedInitType, declarator); 1119Error(localDiagnostics, ErrorCode.ERR_FixedMustInit, declarator); 1905Error(diagnostics, ErrorCode.ERR_AttributesNotAllowed, node.AttributeLists[0]); 2871Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableMultipleDeclarator, nodeOpt); 2941Error(diagnostics, ErrorCode.ERR_NoBreakOrCont, node); 2952Error(diagnostics, ErrorCode.ERR_NoBreakOrCont, node); 3155Error(diagnostics, ErrorCode.ERR_CantReturnVoid, expressionSyntax); 3300Error(diagnostics, ErrorCode.ERR_BadExceptionType, declaration.Type); 3404Error(diagnostics, errorCode, filter.FilterExpression);
Binder\Binder_Symbols.cs (1)
674Error(diagnostics, ErrorCode.ERR_ArraySizeInDeclaration, rankSpecifier);
Binder\ForEachLoopBinder.cs (2)
400Error(diagnostics, ErrorCode.ERR_MustDeclareForeachIteration, variables); 418Error(diagnostics, ErrorCode.ERR_MustDeclareForeachIteration, variables);