+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

chore: remove FileId from the codebase #4134

Merged
merged 5 commits into from
Jan 5, 2023
Merged

Conversation

ematipico
Copy link
Contributor

@ematipico ematipico commented Jan 3, 2023

Summary

This PR removes FileId from the codebase. FileId was needed when we had the old diagnostics. Now that we removed the old diagnostics from the codebase, FileId can be removed too.

Test Plan

There shouldn't be any change in the current logic, and the testing suite should pass as is.

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

@netlify
Copy link

netlify bot commented Jan 3, 2023

Deploy Preview for docs-rometools canceled.

Name Link
🔨 Latest commit 2f3b5db
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/63b6ba931ef12c00086c8e39

@ematipico ematipico force-pushed the chore/remove-file-id branch from a72c8b7 to 6274662 Compare January 3, 2023 15:26
@ematipico ematipico marked this pull request as ready for review January 3, 2023 15:26
@ematipico ematipico requested review from leops, xunilrj, MichaReiser and a team as code owners January 3, 2023 15:26
@github-actions
Copy link

github-actions bot commented Jan 3, 2023

Parser conformance results on ubuntu-latest

js/262

Test result main count This PR count Difference
Total 48647 48647 0
Passed 47582 47582 0
Failed 1065 1065 0
Panics 0 0 0
Coverage 97.81% 97.81% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 40 40 0
Passed 37 37 0
Failed 3 3 0
Panics 0 0 0
Coverage 92.50% 92.50% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 6093 6093 0
Passed 1754 1754 0
Failed 4339 4339 0
Panics 0 0 0
Coverage 28.79% 28.79% 0.00%

ts/babel

Test result main count This PR count Difference
Total 639 639 0
Passed 567 567 0
Failed 72 72 0
Panics 0 0 0
Coverage 88.73% 88.73% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 16740 16740 0
Passed 12816 12816 0
Failed 3924 3924 0
Panics 0 0 0
Coverage 76.56% 76.56% 0.00%

@ematipico ematipico force-pushed the chore/remove-file-id branch from 6274662 to c0f7fc1 Compare January 3, 2023 16:29
@ematipico ematipico force-pushed the chore/remove-file-id branch from d02c150 to 7ab04b3 Compare January 4, 2023 10:45
where
P: Deref,
{
if let Resource::File(file) = self {
Some(file.as_deref())
Some(file.deref())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: rather than calling the .deref() method, the idiomatic way of doing this is to use the * operator (eg. &*file)

@ematipico ematipico force-pushed the chore/remove-file-id branch from 515e09f to 2f3b5db Compare January 5, 2023 11:54
@ematipico ematipico merged commit 2178761 into main Jan 5, 2023
@ematipico ematipico deleted the chore/remove-file-id branch January 5, 2023 12:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载