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)
550Error(diagnostics, ErrorCode.ERR_IllegalArglist, node); 940Error(diagnostics, ErrorCode.ERR_DeclarationExpressionNotPermitted, node); 1327Error(diagnostics, ErrorCode.ERR_ArgsInvalid, node); 2215Error(diagnostics, ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterInMember, node); 2219Error(diagnostics, ErrorCode.ERR_AnonDelegateCantUseStructPrimaryConstructorParameterCaptured, node); 2532Error(diagnostics, inStaticContext ? ErrorCode.ERR_ThisInStaticMeth : ErrorCode.ERR_ThisInBadContext, node); 2590Error(diagnostics, ErrorCode.ERR_NoBaseClass, node); 4090Error(diagnostics, ErrorCode.ERR_MissingArraySize, firstRankSpecifier); 4105Error(diagnostics, ErrorCode.ERR_InvalidArray, arg); 4131Error(diagnostics, ErrorCode.ERR_NegativeArraySize, dimension); 4161Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, node); 4188Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedArrayNoBestType, node); 4263Error(diagnostics, ErrorCode.ERR_ArrayInitializerExpected, expression); 4416Error(diagnostics, errorCode, errorNode ?? node); 4534Error(diagnostics, ErrorCode.ERR_BadStackAllocExpr, typeSyntax); 4561Error(diagnostics, ErrorCode.ERR_BadStackAllocExpr, typeSyntax); 4591Error(diagnostics, ErrorCode.ERR_NegativeStackAllocSize, countSyntax); 4597Error(diagnostics, ErrorCode.ERR_MissingArraySize, rankSpecifiers[0]); 5312Error(diagnostics, ErrorCode.ERR_BadSpreadInCatchFilter, syntax); 5802Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, memberInitializer); 5830Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, memberInitializer); 6392Error(diagnostics, ErrorCode.ERR_InvalidInitializerElementInitializer, elementInitializer); 6437Error(diagnostics, ErrorCode.ERR_EmptyElementInitializer, elementInitializer); 9480Error(diagnostics, ErrorCode.ERR_NamedArgumentForInlineArray, node); 9556Error(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); 883Error(diagnostics, ErrorCode.ERR_PossibleBadNegCast, node); 892Error(diagnostics, ErrorCode.ERR_PossibleBadNegCast, node); 1024Error(diagnostics, ErrorCode.ERR_VoidError, node); 2695Error(diagnostics, ErrorCode.ERR_IntDivByZero, syntax); 2734Error(diagnostics, ErrorCode.ERR_DecConstError, syntax); 2770Error(diagnostics, ErrorCode.ERR_CheckedOverflow, syntax); 3286Error(diagnostics, ErrorCode.ERR_VoidError, node); 3947Error(diagnostics, ErrorCode.ERR_PtrExpected, node); 3961Error(diagnostics, ErrorCode.ERR_VoidError, node); 4007Error(diagnostics, isFixedStatementAddressOfExpression ? ErrorCode.ERR_FixedNotNeeded : ErrorCode.ERR_FixedNeeded, node); 4361Error(diagnostics, ErrorCode.ERR_CheckedOverflow, syntax); 4624Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 4666Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node); 5172Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 5181Error(diagnostics, ErrorCode.ERR_TypelessTupleInAs, node); 5209Error(diagnostics, ErrorCode.ERR_PointerInAsOrIs, node); 5264Error(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);