25 references to ERR_IllegalEscape
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1144or ErrorCode.ERR_IllegalEscape
Parser\Lexer.cs (1)
4864ErrorCode.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)
2003Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u"), 2005Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u0"), 2007Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u00"), 2009Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u000"), 2011Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u"), 2013Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u0"), 2015Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u00"), 2017Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u000") 2044Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u"), 2047Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u0"), 2053Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u00"), 2059Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u000"), 2065Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u"), 2068Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u0"), 2074Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u00"), 2080Diagnostic(ErrorCode.ERR_IllegalEscape, @"\u000"),