20 references to Error
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_AnonymousTypes.cs (1)
137Error(diagnostics, ErrorCode.ERR_AnonymousTypeNotAvailable, node.NewKeyword);
Binder\Binder_Expressions.cs (2)
2302Error(diagnostics, inStaticContext ? ErrorCode.ERR_BaseInStaticMeth : ErrorCode.ERR_BaseInBadContext, node.Token); 2312Error(diagnostics, ErrorCode.ERR_BaseIllegal, node.Token);
Binder\Binder_Initializers.cs (1)
278Error(diagnostics, ErrorCode.ERR_SemicolonExpected, ((ExpressionStatementSyntax)labeledStatementBody.Syntax).SemicolonToken);
Binder\Binder_Lambda.cs (1)
154Error(diagnostics, ErrorCode.ERR_DefaultValueNotAllowed, p.Default.EqualsToken);
Binder\Binder_Operators.cs (1)
609Error(diagnostics, ErrorCode.WRN_DoNotCompareFunctionPointers, node.OperatorToken);
Binder\Binder_Statements.cs (14)
175Error(diagnostics, ErrorCode.ERR_IllegalUnsafe, node.UnsafeKeyword); 181Error(diagnostics, ErrorCode.ERR_IllegalInnerUnsafe, node.UnsafeKeyword); 257Error(diagnostics, ErrorCode.ERR_BadYieldInFinally, node.YieldKeyword); 261Error(diagnostics, ErrorCode.ERR_BadYieldInTryOfCatch, node.YieldKeyword); 265Error(diagnostics, ErrorCode.ERR_BadYieldInCatch, node.YieldKeyword); 269Error(diagnostics, ErrorCode.ERR_YieldNotAllowedInScript, node.YieldKeyword); 280Error(diagnostics, ErrorCode.ERR_BadYieldInFinally, node.YieldKeyword); 284Error(diagnostics, ErrorCode.ERR_YieldNotAllowedInScript, node.YieldKeyword); 1169Error(diagnostics, ErrorCode.ERR_BadAsyncLocalType, identifierToken); 1174Error(diagnostics, ErrorCode.ERR_BadIteratorLocalType, identifierToken); 2963Error(diagnostics, ErrorCode.ERR_RetNoObjectRequiredLambda, syntax.ReturnKeyword); 3219Error(diagnostics, ErrorCode.WRN_UnreachableGeneralCatch, node.CatchKeyword); 3630Error(diagnostics, ErrorCode.ERR_UnexpectedOrMissingConstructorInitializerInRecord, initializer?.ThisOrBaseKeyword ?? constructor.Identifier); 3641Error(diagnostics, ErrorCode.ERR_RecordStructConstructorCallsDefaultConstructor, initializer.ThisOrBaseKeyword);