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

Include comments in "out of scope" locations#3200

Merged
jasonLaster merged 4 commits into
firefox-devtools:masterfrom
amitzur:out_of_scope
Jul 6, 2017
Merged

Include comments in "out of scope" locations#3200
jasonLaster merged 4 commits into
firefox-devtools:masterfrom
amitzur:out_of_scope

Conversation

@amitzur
Copy link
Copy Markdown
Contributor

@amitzur amitzur commented Jun 21, 2017

Associated Issue: #3055

Summary of Changes

  • in getOutOfScopeLocations.js changed function findFunctions to findSymbols and concat functions to comments

Test Plan

  • should treat comments as out of scope

the only reason this PR is under my account is that @giladartzi's machine didn't compile the code properly. Beautiful work in #goodnessSquad

Copy link
Copy Markdown
Contributor

@jasonLaster jasonLaster left a comment

Choose a reason for hiding this comment

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

👍

* source
*/
function findFunctions(source: SourceText) {
function findSymbols(source: SourceText) {
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.

This findSymbols/findFunctions function seems odd to me. Couldn't we reuse this getSymbols function and modify it to extract comments?

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 23, 2017

Codecov Report

Merging #3200 into master will increase coverage by 0.22%.
The diff coverage is 96.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3200      +/-   ##
==========================================
+ Coverage   49.22%   49.44%   +0.22%     
==========================================
  Files          99       99              
  Lines        4132     4150      +18     
  Branches      853      854       +1     
==========================================
+ Hits         2034     2052      +18     
  Misses       2098     2098
Impacted Files Coverage Δ
src/utils/parser/getOutOfScopeLocations.js 92.59% <100%> (+8.59%) ⬆️
src/utils/parser/utils/ast.js 81.25% <100%> (+0.6%) ⬆️
src/utils/parser/getSymbols.js 95.77% <96.15%> (-0.38%) ⬇️
src/components/Editor/index.js 18.94% <0%> (+0.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1deb33...3954940. Read the comment docs.

@codehag
Copy link
Copy Markdown
Contributor

codehag commented Jun 23, 2017

updated and rebased

@jasonLaster jasonLaster merged commit e3f6a07 into firefox-devtools:master Jul 6, 2017
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.

4 participants