Skip to content

Commit f0933dc

Browse files
Remove asserts
1 parent 848a690 commit f0933dc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Features/Core/Portable/EmbeddedLanguages/EmbeddedLanguageDetector.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,6 @@ private bool IsEmbeddedLanguageStringLiteralToken_Direct(
212212
identifier = null;
213213
var syntaxFacts = Info.SyntaxFacts;
214214

215-
// Checked by caller
216-
Debug.Assert(syntaxFacts.IsLiteralExpression(token.Parent));
217-
Debug.Assert(!HasLanguageComment(token, syntaxFacts, out identifier, out _));
218-
219215
// If we're a string used in a collection initializer, treat this as a lang string if the collection itself
220216
// is properly annotated. This is for APIs that do things like DateTime.ParseExact(..., string[] formats, ...);
221217
var container = TryFindContainer(token);

0 commit comments

Comments
 (0)