57 references to ERR_ExecutableAsDeclaration
Microsoft.CodeAnalysis.VisualBasic (3)
Errors\ErrorFacts.vb (1)
458ERRID.ERR_ExecutableAsDeclaration,
Parser\BlockContexts\DeclarationContext.vb (2)
239node = Parser.ReportSyntaxError(node, ERRID.ERR_ExecutableAsDeclaration) 348node = Parser.ReportSyntaxError(node, ERRID.ERR_ExecutableAsDeclaration)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
CodeGen\CodeGenScriptTests.vb (1)
62Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "System.Console.WriteLine(1+1)"))
CodeGen\CodeGenSelectCase.vb (2)
4630VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Select """""), 4644VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Select """""),
ErrorHandling.vb (1)
622compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "On Error Goto goo"))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (28)
Binding\Binder_Statements_Tests.vb (12)
3338CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "While (true)")) 3353CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "While (true)")) 3366CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "If (true)")) 3381CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "If (true)")) 3395CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Try"), 3396Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Catch")) 3412CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Try"), 3413Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Catch")) 3426CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Do")) 3441CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Do")) 3454CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Else")) 3469CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Else"))
Binding\BindingErrorTests.vb (5)
23580Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "SyncLock item"), 23582Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return item.ToString() = """""), 23607Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return lab1"), 23609Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return item.ToString() = """""), 23679VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return Nothing"),
Binding\ForEachTests.vb (4)
3853CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For Each i In """""), 3870CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For Each i In """""), 3942CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For i As Integer = 1 To 100"), 3959CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For i As Integer = 1 To 100"),
Binding\GotoTests.vb (3)
132Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "GoTo Labl"), 149Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "goto Labl"), 164Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "goto Labl"),
Binding\SyncLockTests.vb (2)
413</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "SyncLock Nothing"), 428</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "SyncLock New Object()"),
Binding\UsingTests.vb (2)
1659</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Using Nothing"), 1672</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Using Nothing"),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Metadata\WinMdEventTest.vb (2)
1157Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return Nothing"), 1210Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return Nothing"),
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (20)
Parser\ParseAttributes.vb (1)
75Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "clscompliant(true)"),
Parser\ParseDeclarationTests.vb (7)
553Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "VERSION 1.0 CLASS"), 556Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "BEGIN"), 557Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "MultiUse = -1"), 558Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Persistable = 0"), 559Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "DataBindingBehavior = 0"), 560Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "DataSourceBehavior = 0"), 561Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "MTSTransactionMode = 0"),
Parser\ParseDirectives.vb (2)
310Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "BlahBlah"), 311Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "BlahBlah")
Parser\ParseErrorTests.vb (4)
458Diagnostic(ERRID.ERR_ExecutableAsDeclaration, ".Dim(x131 = Sub())"), 1344Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "abc")) 2438Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "On 1 Goto 1000"), 4076Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Using stream As New IO.MemoryStream()"),
Parser\ParseStatements.vb (5)
3523Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "If VarType(a1.GetValue(x)) > Variant"), 4095Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "else if "), 4105]]>, Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Catch ex As Exception"), 4106Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Finally")) 4120Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Try"),
Parser\ParseXml.vb (1)
122Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "VB"))