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)
2302
Error
(diagnostics, inStaticContext ? ErrorCode.ERR_BaseInStaticMeth : ErrorCode.ERR_BaseInBadContext, node.Token);
2312
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)
154
Error
(diagnostics, ErrorCode.ERR_DefaultValueNotAllowed, p.Default.EqualsToken);
Binder\Binder_Operators.cs (1)
609
Error
(diagnostics, ErrorCode.WRN_DoNotCompareFunctionPointers, node.OperatorToken);
Binder\Binder_Statements.cs (14)
175
Error
(diagnostics, ErrorCode.ERR_IllegalUnsafe, node.UnsafeKeyword);
181
Error
(diagnostics, ErrorCode.ERR_IllegalInnerUnsafe, node.UnsafeKeyword);
257
Error
(diagnostics, ErrorCode.ERR_BadYieldInFinally, node.YieldKeyword);
261
Error
(diagnostics, ErrorCode.ERR_BadYieldInTryOfCatch, node.YieldKeyword);
265
Error
(diagnostics, ErrorCode.ERR_BadYieldInCatch, node.YieldKeyword);
269
Error
(diagnostics, ErrorCode.ERR_YieldNotAllowedInScript, node.YieldKeyword);
280
Error
(diagnostics, ErrorCode.ERR_BadYieldInFinally, node.YieldKeyword);
284
Error
(diagnostics, ErrorCode.ERR_YieldNotAllowedInScript, node.YieldKeyword);
1169
Error
(diagnostics, ErrorCode.ERR_BadAsyncLocalType, identifierToken);
1174
Error
(diagnostics, ErrorCode.ERR_BadIteratorLocalType, identifierToken);
2963
Error
(diagnostics, ErrorCode.ERR_RetNoObjectRequiredLambda, syntax.ReturnKeyword);
3219
Error
(diagnostics, ErrorCode.WRN_UnreachableGeneralCatch, node.CatchKeyword);
3630
Error
(diagnostics, ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, initializer?.ThisOrBaseKeyword ?? constructor.Identifier);
3641
Error
(diagnostics, ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, initializer.ThisOrBaseKeyword);