Skip to content

Commit ce18476

Browse files
expose scope object and allow reassignment of scope object
1 parent 087e30e commit ce18476

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ function parser() {
146146
program = node
147147

148148
stream.program = program
149+
stream.scope = function(scope) {
150+
if(arguments.length === 1) {
151+
state.scope = scope
152+
}
153+
return state.scope
154+
}
155+
149156
state.unshift(node)
150157
return stream
151158

0 commit comments

Comments
 (0)