Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1431,13 +1431,11 @@ static void WriteImport(TextWriter writer, string project, CSharpDirective.Sdk s
}
}

#pragma warning disable RSEXPERIMENTAL003 // 'SyntaxTokenParser' is experimental
public static SyntaxTokenParser CreateTokenizer(SourceText text)
{
return SyntaxFactory.CreateTokenParser(text,
CSharpParseOptions.Default.WithFeatures([new("FileBasedProgram", "true")]));
}
#pragma warning restore RSEXPERIMENTAL003 // 'SyntaxTokenParser' is experimental

/// <param name="reportAllErrors">
/// If <see langword="true"/>, the whole <paramref name="sourceFile"/> is parsed to find diagnostics about every app directive.
Expand Down
Loading