20 references to Error
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_AnonymousTypes.cs (1)
137
Error
(diagnostics, ErrorCode.ERR_AnonymousTypeNotAvailable, node.NewKeyword);
Binder\Binder_Expressions.cs (2)
2636
Error
(diagnostics, inStaticContext ? ErrorCode.ERR_BaseInStaticMeth : ErrorCode.ERR_BaseInBadContext, node.Token);
2646
Error
(diagnostics, ErrorCode.ERR_BaseIllegal, node.Token);
Binder\Binder_Initializers.cs (1)
278
Error
(diagnostics, ErrorCode.ERR_SemicolonExpected, ((ExpressionStatementSyntax)labeledStatementBody.Syntax).SemicolonToken);
Binder\Binder_Lambda.cs (1)
166
Error
(diagnostics, ErrorCode.ERR_DefaultValueNotAllowed, p.Default.EqualsToken);
Binder\Binder_Operators.cs (1)
1045
Error
(diagnostics, ErrorCode.WRN_DoNotCompareFunctionPointers, node.OperatorToken);
Binder\Binder_Statements.cs (14)
176
Error
(diagnostics, ErrorCode.ERR_IllegalUnsafe, node.UnsafeKeyword);
256
Error
(diagnostics, ErrorCode.ERR_BadYieldInFinally, node.YieldKeyword);
260
Error
(diagnostics, ErrorCode.ERR_BadYieldInTryOfCatch, node.YieldKeyword);
264
Error
(diagnostics, ErrorCode.ERR_BadYieldInCatch, node.YieldKeyword);
268
Error
(diagnostics, ErrorCode.ERR_YieldNotAllowedInScript, node.YieldKeyword);
272
Error
(diagnostics, ErrorCode.ERR_BadYieldInUnsafe, node.YieldKeyword);
283
Error
(diagnostics, ErrorCode.ERR_BadYieldInFinally, node.YieldKeyword);
287
Error
(diagnostics, ErrorCode.ERR_YieldNotAllowedInScript, node.YieldKeyword);
3113
Error
(diagnostics, ErrorCode.ERR_RetNoObjectRequiredLambda, syntax.ReturnKeyword);
3385
Error
(diagnostics, ErrorCode.WRN_UnreachableGeneralCatch, node.CatchKeyword);
3799
Error
(diagnostics, ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, initializer?.ThisOrBaseKeyword ?? constructor.Identifier);
3804
Error
(diagnostics, ErrorCode.ERR_UnionConstructorCallsDefaultConstructor, initializer?.ThisOrBaseKeyword ?? constructor.Identifier);
3816
Error
(diagnostics, ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, initializer.ThisOrBaseKeyword);
3820
Error
(diagnostics, ErrorCode.ERR_UnionConstructorCallsDefaultConstructor, initializer.ThisOrBaseKeyword);