48 references to ERR_Syntax
Microsoft.CodeAnalysis.VisualBasic (22)
Binding\Binder_Invocation.vb (1)
173target = ReportDiagnosticAndProduceBadExpression(diagnostics, node, ERRID.ERR_Syntax).MakeCompilerGenerated()
Errors\ErrorFacts.vb (1)
80ERRID.ERR_Syntax,
Parser\BlockContexts\DeclarationContext.vb (1)
364Dim ErrorId As ERRID = ERRID.ERR_Syntax
Parser\ParseConditional.vb (2)
203hashToken = hashToken.AddTrailingSyntax(endKeyword, ERRID.ERR_Syntax) 241equalsToken = equalsToken.AddLeadingSyntax(unexpected, ERRID.ERR_Syntax)
Parser\ParseInterpolatedString.vb (3)
82content = AddLeadingSyntax(content, _pool.ToListAndFree(skipped), ERRID.ERR_Syntax) 90doubleQuoteToken = AddLeadingSyntax(doubleQuoteToken, _pool.ToListAndFree(skipped), ERRID.ERR_Syntax) 212formatStringToken = ReportSyntaxError(formatStringToken, ERRID.ERR_Syntax)
Parser\Parser.vb (3)
763Return ReportUnrecognizedStatementError(ERRID.ERR_Syntax) 1240Return ReportUnrecognizedStatementError(ERRID.ERR_Syntax) 6089Return node.AddTrailingSyntax(b.ToList(), ERRID.ERR_Syntax)
Parser\ParseStatement.vb (4)
623expression = InternalSyntaxFactory.MissingExpression.AddTrailingSyntax(ResyncAt({SyntaxKind.ToKeyword}), ERRID.ERR_Syntax) 664fromValue = InternalSyntaxFactory.MissingExpression.AddTrailingSyntax(ResyncAt({SyntaxKind.ToKeyword}), ERRID.ERR_Syntax) 897intLiteral = ReportSyntaxError(intLiteral, ERRID.ERR_Syntax) 1715optionalWhileOrUntilClause = ReportSyntaxError(ResyncAt(clause), ERRID.ERR_Syntax)
Parser\ParseVerify.vb (1)
142Return ERRID.ERR_Syntax
Parser\ParseXml.vb (3)
818greaterThan = AddLeadingSyntax(greaterThan, unexpectedSyntax, ERRID.ERR_Syntax) 853result = AddLeadingSyntax(result, unexpectedSyntax, ERRID.ERR_Syntax) 2038endXmlEmbedded = AddLeadingSyntax(endXmlEmbedded, unexpectedSyntax, ERRID.ERR_Syntax)
Scanner\Scanner.vb (2)
1996Return MakeBadToken(precedingTrivia, here, ERRID.ERR_Syntax) 2124result = DirectCast(result.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_Syntax)), SyntaxToken)
Scanner\XmlTokenFactories.vb (1)
349Return XmlMakeBadToken(SyntaxSubKind.LessThanExclamationToken, precedingTrivia, 2, If(state = ScannerState.DocType, ERRID.ERR_DTDNotSupported, ERRID.ERR_Syntax))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
CodeGen\CodeGenUnstructuredErrorHandling.vb (4)
1045Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "-")) 1121Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "1L"), 1122Diagnostic(ERRID.ERR_Syntax, "2S"), 1123Diagnostic(ERRID.ERR_Syntax, "1%"))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (15)
Binding\BindingErrorTests.vb (1)
23606VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_Syntax, """"""),
Binding\ForEachTests.vb (2)
1419Diagnostic(ERRID.ERR_Syntax, ",")) 1448Diagnostic(ERRID.ERR_Syntax, "="))
Binding\GotoTests.vb (12)
207</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "100"), 229</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "100"), 431Diagnostic(ERRID.ERR_Syntax, "16F"), 433Diagnostic(ERRID.ERR_Syntax, "19I"), 435Diagnostic(ERRID.ERR_Syntax, "23L"), 440Diagnostic(ERRID.ERR_Syntax, "31S"), 474</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "14D"), 476Diagnostic(ERRID.ERR_Syntax, "16F"), 477Diagnostic(ERRID.ERR_Syntax, "19I"), 478Diagnostic(ERRID.ERR_Syntax, "23L"), 479Diagnostic(ERRID.ERR_Syntax, "29R"), 480Diagnostic(ERRID.ERR_Syntax, "31S"))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\SymbolErrorTests.vb (1)
16639Diagnostic(ERRID.ERR_Syntax, "("),
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Parser\ParseDirectives.vb (1)
494Diagnostic(ERRID.ERR_Syntax, "True"),
Parser\ParseStatements.vb (2)
2328End Module]]>, Diagnostic(ERRID.ERR_Syntax, "100")) 6288Diagnostic(ERRID.ERR_Syntax, "5").WithLocation(4, 22)
Parser\ParseXml.vb (3)
2003Diagnostic(ERRID.ERR_Syntax, "Return"), 2018Diagnostic(ERRID.ERR_Syntax, "Return"), 4575Diagnostic(ERRID.ERR_Syntax, "Then"))