reuse parsed tokens instead of tokenizing each method body

This commit is contained in:
Dave Holoway
2020-06-08 12:30:31 +01:00
parent bbc6007338
commit 04c0e97c81
4 changed files with 23 additions and 12 deletions

View File

@@ -732,7 +732,7 @@ class ImportBlock extends DeclarationBlock {
class ModuleBlock extends TextBlockArray {
/**
* @param {TextBlock[]} blocks
* @param {Token[]} blocks
*/
constructor(blocks) {
super('module', blocks);