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