Skip to content

Commit

Permalink
Merge pull request jashkenas#15 from GeoffreyBooth/value-ast-revision…
Browse files Browse the repository at this point in the history
…s-helpers

AST helpers revisions
  • Loading branch information
helixbass authored Sep 26, 2018
2 parents 4c6cc8d + 1bbbca6 commit c6472fa
Show file tree
Hide file tree
Showing 12 changed files with 359 additions and 351 deletions.
6 changes: 1 addition & 5 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,7 @@ buildDocTests = (watch = no) ->
outputFolder = "docs/v#{majorVersion}"

# Included in test.html
readHelpersFile = (basename) ->
fs.readFileSync("test/support/#{basename}.coffee", 'utf-8').replace /exports\./g, '@'
testHelpers = readHelpersFile('helpers') + '\n'
testHelpers += readHelpersFile('abstract_syntax_tree_helpers')
testHelpers = fs.readFileSync('test/support/helpers.coffee', 'utf-8').replace /exports\./g, '@'

# Helpers
testsInScriptBlocks = ->
Expand Down Expand Up @@ -421,7 +418,6 @@ runTests = (CoffeeScript) ->
onFail description, fn, err

helpers.extend global, require './test/support/helpers'
helpers.extend global, require './test/support/abstract_syntax_tree_helpers'

# When all the tests have run, collect and print errors.
# If a stacktrace is available, output the compiled function source.
Expand Down
2 changes: 1 addition & 1 deletion lib/coffeescript/grammar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions lib/coffeescript/helpers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 42 additions & 35 deletions lib/coffeescript/nodes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c6472fa

Please sign in to comment.