25 references to ERR_IllegalEscape
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1156or ErrorCode.ERR_IllegalEscape
Parser\Lexer.cs (1)
4843ErrorCode.ERR_IllegalEscape);
Parser\Lexer_StringLiteral.cs (1)
185this.AddError(start, TextWindow.Position - start, ErrorCode.ERR_IllegalEscape);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\InterpolationTests.cs (3)
1471Diagnostic(ErrorCode.ERR_IllegalEscape, @"\}").WithLocation(6, 40) 1581Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u1").WithLocation(8, 46), 1584Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u2").WithLocation(8, 52)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (19)
LexicalAndXml\LexicalErrorTests.cs (1)
128ParserErrorMessageTests.ParseAndValidate(test, Diagnostic(ErrorCode.ERR_IllegalEscape, @"\m"));
LexicalAndXml\LexicalTests.cs (2)
1141Assert.Equal((int)ErrorCode.ERR_IllegalEscape, errors[0].Code); 1486Assert.Equal((int)ErrorCode.ERR_IllegalEscape, errors[0].Code);
Parsing\ParserErrorMessageTests.cs (16)
2021Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u"), 2023Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u0"), 2025Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u00"), 2027Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u000"), 2029Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u"), 2031Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u0"), 2033Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u00"), 2035Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u000") 2062Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u"), 2065Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u0"), 2071Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u00"), 2077Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u000"), 2083Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u"), 2086Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u0"), 2092Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u00"), 2098Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u000"),