Skip to content

JavaScript: Factor out HTML extractor#4744

Merged
sauyon merged 1 commit into
mainfrom
sauyon/html-refactor
Dec 7, 2020
Merged

JavaScript: Factor out HTML extractor#4744
sauyon merged 1 commit into
mainfrom
sauyon/html-refactor

Conversation

@sauyon
Copy link
Copy Markdown
Contributor

@sauyon sauyon commented Nov 27, 2020

Factor out HTML extraction into a library in order to create a standalone HTML extractor.

@sauyon sauyon requested a review from a team as a code owner November 27, 2020 18:37
@github-actions github-actions Bot added the JS label Nov 27, 2020
@sauyon sauyon added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label Nov 27, 2020
@sauyon sauyon force-pushed the sauyon/html-refactor branch from 890156a to 8d55fdc Compare November 27, 2020 18:43
@sauyon sauyon marked this pull request as draft November 30, 2020 17:39
@sauyon sauyon force-pushed the sauyon/html-refactor branch from 8d55fdc to 1643121 Compare November 30, 2020 18:15
@sauyon sauyon marked this pull request as ready for review December 1, 2020 00:29
@sauyon sauyon force-pushed the sauyon/html-refactor branch from 1643121 to b215fcc Compare December 1, 2020 00:49
Copy link
Copy Markdown
Contributor

@smowton smowton left a comment

Choose a reason for hiding this comment

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

+400, -600 -- is there a missing file?

new ScopeManager(textualExtractor.getTrapwriter(), config.getEcmaVersion());
}

/*
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Weird indentation (autoformat?)

xmlElements(#20001,"html",#10000,0,#10000)
#20002=@"loc,{#10000},1,1,25,7"
locations_default(#20002,#10000,1,1,25,7)
xmlChars(#20001,"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I thought this would just be a refactor; why have test results changed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Tuples moved around because the extraction order changed.

@smowton
Copy link
Copy Markdown
Contributor

smowton commented Dec 1, 2020

Ah wait sorry, I get it -- code is moving between repos.

@sauyon sauyon force-pushed the sauyon/html-refactor branch 2 times, most recently from ba3c452 to 639e22e Compare December 4, 2020 11:02
@asgerf
Copy link
Copy Markdown
Contributor

asgerf commented Dec 4, 2020

Sorry, I forgot to mention this earlier, but could you bump the extractor version string in Main.java? Otherwise LGTM

@sauyon sauyon force-pushed the sauyon/html-refactor branch from 639e22e to 17e450f Compare December 6, 2020 13:05
Copy link
Copy Markdown
Contributor

@asgerf asgerf left a comment

Choose a reason for hiding this comment

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

Happy to see this merged. 👍

@sauyon sauyon merged commit b5ec26d into main Dec 7, 2020
@sauyon sauyon deleted the sauyon/html-refactor branch April 2, 2021 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

depends on internal PR This PR should only be merged in sync with an internal Semmle PR JS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants