mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-08-30 08:05:57 +02:00
Revert "permet l'ajout des frameworks et des routes"
This reverts commit 361112699c
This commit is contained in:
31
app/node_modules/hyntax/lib/stream-tree-constructor.js
generated
vendored
31
app/node_modules/hyntax/lib/stream-tree-constructor.js
generated
vendored
@@ -1,31 +0,0 @@
|
||||
const { Transform } = require('stream')
|
||||
|
||||
const constructTree = require('./construct-tree')
|
||||
|
||||
class StreamTreeConstructor extends Transform {
|
||||
constructor (options) {
|
||||
super(Object.assign(
|
||||
{},
|
||||
options,
|
||||
{
|
||||
objectMode: true,
|
||||
readableObjectMode: true
|
||||
}
|
||||
))
|
||||
|
||||
this.currentState = undefined
|
||||
}
|
||||
|
||||
_transform (tokensChunk, encoding, callback) {
|
||||
const { state, ast } = constructTree(
|
||||
tokensChunk,
|
||||
this.currentState
|
||||
)
|
||||
|
||||
this.currentState = state
|
||||
|
||||
callback(null, ast)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = StreamTreeConstructor
|
Reference in New Issue
Block a user