18 references to Error
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_AnonymousTypes.cs (1)
137
Error
(diagnostics, ErrorCode.ERR_AnonymousTypeNotAvailable, node.NewKeyword);
Binder\Binder_Expressions.cs (2)
2562
Error
(diagnostics, inStaticContext ? ErrorCode.ERR_BaseInStaticMeth : ErrorCode.ERR_BaseInBadContext, node.Token);
2572
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)
165
Error
(diagnostics, ErrorCode.ERR_DefaultValueNotAllowed, p.Default.EqualsToken);
Binder\Binder_Operators.cs (1)
1009
Error
(diagnostics, ErrorCode.WRN_DoNotCompareFunctionPointers, node.OperatorToken);
Binder\Binder_Statements.cs (12)
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);
3101
Error
(diagnostics, ErrorCode.ERR_RetNoObjectRequiredLambda, syntax.ReturnKeyword);
3357
Error
(diagnostics, ErrorCode.WRN_UnreachableGeneralCatch, node.CatchKeyword);
3770
Error
(diagnostics, ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, initializer?.ThisOrBaseKeyword ?? constructor.Identifier);
3781
Error
(diagnostics, ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, initializer.ThisOrBaseKeyword);