File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1414/// /@ts -check
1515const UTILS = require ( '../utils' ) ;
1616const WOQLPrinter = require ( './woqlPrinter' ) ;
17- const { Var, Doc } = require ( './woqlDoc' ) ;
17+ const { Var, Vars , Doc } = require ( './woqlDoc' ) ;
1818
1919/**
2020 * defines the internal functions of the woql query object - the
Original file line number Diff line number Diff line change @@ -74,4 +74,11 @@ function Doc(obj) {
7474 this . doc = obj ;
7575 this . encoded = convert ( obj ) ;
7676}
77- module . exports = { Var, Doc } ;
77+
78+ function Vars ( ) {
79+ for ( let k of arguments ) {
80+ this [ k ] = new Var ( k )
81+ }
82+ }
83+
84+ module . exports = { Vars, Var, Doc } ;
Original file line number Diff line number Diff line change 1212/// /@ts -check
1313// WOQLQuery
1414const WOQLQuery = require ( './woqlCore' ) ;
15- const { Var, Doc } = require ( './woqlDoc' ) ;
15+ const { Var, Vars , Doc } = require ( './woqlDoc' ) ;
1616
1717// I HAVE TO REVIEW THE Inheritance and the prototype chain
1818/* class WOQLQuery extends WOQLCore {
Original file line number Diff line number Diff line change 33/// /@ts -check
44// I HAVE TO REVIEW THE Inheritance and the prototype chain
55const WOQLQuery = require ( './query/woqlBuilder' ) ;
6- const { Var, Doc } = require ( './query/woqlDoc' ) ;
6+ const { Vars , Var, Doc } = require ( './query/woqlDoc' ) ;
77/**
88 * @license Apache Version 2
99 * @module WOQL
You can’t perform that action at this time.
0 commit comments