8 references to ERR_KeywordNotAllowedInScript
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\Binder_Expressions.vb (1)
2235
errorId = ERRID.
ERR_KeywordNotAllowedInScript
Binding\Binder_Statements.vb (2)
4982
ReportDiagnostic(diagnostics, originalSyntax, ERRID.
ERR_KeywordNotAllowedInScript
, SyntaxFacts.GetText(SyntaxKind.ReturnKeyword))
5109
ReportDiagnostic(diagnostics, originalSyntax, ERRID.
ERR_KeywordNotAllowedInScript
, SyntaxFacts.GetText(SyntaxKind.YieldKeyword))
Errors\ErrorFacts.vb (1)
1220
ERRID.
ERR_KeywordNotAllowedInScript
,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
CodeGen\CodeGenScriptTests.vb (4)
94
c.VerifyDiagnostics(Diagnostic(ERRID.
ERR_KeywordNotAllowedInScript
, "Me").WithArguments("Me"),
95
Diagnostic(ERRID.
ERR_KeywordNotAllowedInScript
, "Me").WithArguments("Me"))
115
c.VerifyDiagnostics(Diagnostic(ERRID.
ERR_KeywordNotAllowedInScript
, "MyClass").WithArguments("MyClass"),
116
Diagnostic(ERRID.
ERR_KeywordNotAllowedInScript
, "MyBase").WithArguments("MyBase"))