Home
last modified time | relevance | path

Searched refs:ast (Results 1 – 25 of 93) sorted by relevance

1234

/plugin/asciidocjs/node_modules/pug-walk/
Dindex.js4 function walkAST(ast, before, after, options) { argument
16 ast = replacement;
20 parents[0].type === 'RawInclude' && ast.type === 'IncludeFilter');
23 var result = before(ast, replace);
25 return ast;
26 } else if (Array.isArray(ast)) {
28 return walkAndMergeNodes(ast);
32 parents.unshift(ast);
34 switch (ast.type) {
37 ast.nodes = walkAndMergeNodes(ast.nodes);
[all …]
DREADME.md21 ### `walk(ast, before, after, options)`
23 Traverse and optionally transform a [Pug AST](https://github.com/pugjs/pug-ast-spec).
25 `ast` is not cloned, so any changes done to it will be done directly on the AST provided.
36 * `parents` (array<Node>): Nodes that are ancestors to the current `ast`. This option is used mainl…
48 var ast = parse(lex(source));
50 ast = walk(ast, function before(node, replace) {
62 assert.deepEqual(parse(lex(dest)), ast);
70 var ast = parse(lex(source));
72 ast = walk(ast, function before(node, replace) {
87 assert.deepEqual(parse(lex(dest)), ast);
[all …]
/plugin/asciidocjs/node_modules/nunjucks/src/
Dtransformer.js24 function walk(ast, func, depthFirst) { argument
25 if (!(ast instanceof nodes.Node)) {
26 return ast;
29 var astT = func(ast);
30 if (astT && astT !== ast) {
34 if (ast instanceof nodes.NodeList) {
35 var children = mapCOW(ast.children, function (node) {
38 if (children !== ast.children) {
39 ast = new nodes[ast.typename](ast.lineno, ast.colno, children);
41 } else if (ast instanceof nodes.CallExtension) {
[all …]
/plugin/asciidocjs/node_modules/pug-linker/
Dindex.js11 function link(ast) { argument
12 assert(ast.type === 'Block', 'The top level element should always be a block');
14 if (ast.nodes.length) {
15 var hasExtends = ast.nodes[0].type === 'Extends';
16 checkExtendPosition(ast, hasExtends);
18 extendsNode = ast.nodes.shift();
21 ast = applyIncludes(ast);
22 ast.declaredBlocks = findDeclaredBlocks(ast);
26 ast.nodes.forEach(function addNode(node) {
37 var parent = link(extendsNode.file.ast);
[all …]
/plugin/findologicxmlexport/vendor/hoa/math/Test/Unit/
DIssue.php60 $ast = $compiler->parse('1 / 0')
62 ->exception(function () use ($visitor, $ast) {
63 $visitor->visit($ast);
74 $ast = $compiler->parse('1 / (1 / 0)')
76 ->exception(function () use ($visitor, $ast) {
77 $visitor->visit($ast);
89 ->when($ast = $compiler->parse('C'))
91 ->object($ast)
93 ->string($ast->getId())
95 ->string($ast->getValueToken())
[all …]
/plugin/asciidocjs/node_modules/pug/lib/
Dindex.js86 var ast = load.string(str, {
154 ast = applyPlugins(ast, options, plugins, 'postLoad');
155 ast = applyPlugins(ast, options, plugins, 'preFilters');
166 ast = filters.handleFilters(ast, filtersSet, options.filterOptions, options.filterAliases);
168 ast = applyPlugins(ast, options, plugins, 'postFilters');
169 ast = applyPlugins(ast, options, plugins, 'preLink');
170 ast = link(ast);
171 ast = applyPlugins(ast, options, plugins, 'postLink');
174 ast = applyPlugins(ast, options, plugins, 'preCodeGen');
175 var js = generateCode(ast, {
/plugin/asciidocjs/node_modules/acorn-globals/
Dindex.js32 var ast;
35 ast = reallyParse(source);
37 ast = source;
40 if (!(ast && typeof ast === 'object' && ast.type === 'Program')) {
80 ast.locals = ast.locals || {};
81 ast.locals[node.local.name] = true;
83 walk.ancestor(ast, {
141 walk.ancestor(ast, {
/plugin/asciidocjs/node_modules/pug-load/
Dindex.js9 function load(ast, options) { argument
12 ast = JSON.parse(JSON.stringify(ast));
13 return walk(ast, function (node) {
31 file.ast = load.string(str, assign({}, options, {
45 var ast = options.parse(tokens, options);
46 return load(ast, options);
/plugin/asciidocjs/node_modules/handlebars/lib/handlebars/compiler/
Dbase.js24 let ast = parser.parse(input);
26 return ast;
30 let ast = parseWithoutProcessing(input, options);
33 return strip.accept(ast);
/plugin/asciidocjs/node_modules/handlebars/dist/amd/handlebars/compiler/
Dbase.js33 var ast = _parser2['default'].parse(input);
35 return ast;
39 var ast = parseWithoutProcessing(input, options);
42 return strip.accept(ast);
/plugin/combo/vendor/carica/phpcss/src/
H A DPhpCss.php24 $ast = self::getAst($cssSelector);
26 $ast->accept($visitor);
39 $ast = self::getAst($cssSelector);
41 $ast->accept($visitor);
/plugin/asciidocjs/node_modules/handlebars/dist/cjs/handlebars/compiler/
Dbase.js46 var ast = _parser2['default'].parse(input);
48 return ast;
52 var ast = parseWithoutProcessing(input, options);
55 return strip.accept(ast);
/plugin/asciidocjs/node_modules/babylon/
DREADME.md76 [Babel AST format]: https://github.com/babel/babylon/blob/master/ast/spec.md
83 [StringLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#stringliteral
84 [NumericLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#numericliteral
85 [BooleanLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#booleanliteral
86 [NullLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#nullliteral
87 [RegExpLiteral]: https://github.com/babel/babylon/blob/master/ast/spec.md#regexpliteral
88 [ObjectProperty]: https://github.com/babel/babylon/blob/master/ast/spec.md#objectproperty
89 [ObjectMethod]: https://github.com/babel/babylon/blob/master/ast/spec.md#objectmethod
90 [ClassMethod]: https://github.com/babel/babylon/blob/master/ast/spec.md#classmethod
91 [Program]: https://github.com/babel/babylon/blob/master/ast/spec.md#programs
[all …]
/plugin/ifauthex/_test/
Dgeneral.test.php139 $ast = null;
141 $this->assertNotNull($ast = auth_expr_parse($expr));
142 $this->assertNotNull($rebuiltExpr = $ast->getRepresentation());
148 $ast = null;
150 $this->assertNotNull($ast = auth_expr_parse($expr));
151 $this->assertNotNull($rebuiltExpr = $ast->getRepresentation());
202 $ast = null;
204 $this->assertNotNull($ast = auth_expr_parse($expr));
205 $ast->ensureWellFormed();
/plugin/findologicxmlexport/vendor/hoa/compiler/Test/Integration/
DDocumentation.php113 ->when($ast = $compiler->parse('{"foo": true, "bar": [null, 42]}'))
115 ->object($ast)
118 ->when($result = $dump->visit($ast))
/plugin/asciidocjs/node_modules/babylon/bin/
Dbabylon.js14 var ast = babylon.parse(file); variable
16 console.log(JSON.stringify(ast, null, " "));
/plugin/findologicxmlexport/vendor/jms/serializer/src/Type/
DParser.php28 $ast = $this->parser->parse($type, 'type');
30 return $this->visitor->visit($ast);
/plugin/asciidocjs/node_modules/uglify-js/lib/
Dpropmangle.js125 function reserve_quoted_keys(ast, reserved) { argument
126 ast.walk(new TreeWalker(function(node) {
158 function mangle_properties(ast, options) { argument
201 ast.walk(new TreeWalker(function(node) {
235 ast.walk(new TreeWalker(function(node) {
/plugin/asciidocjs/node_modules/with/
Dindex.js76 var ast = reallyParse(src)
81 if ((ref = ast.body).length !== 1
89 walk.recursive(ast, null, {
/plugin/asciidocjs/node_modules/pug-filters/lib/
Dhandle-filters.js10 function handleFilters(ast, filters, options, filterAliases) { argument
12 walk(ast, function (node) {
78 return ast;
/plugin/findologicxmlexport/vendor/hoa/math/Bin/
DCalc.php95 $ast = $compiler->parse($expression);
96 echo $expression . ' = ' . $visitor->visit($ast), "\n";
/plugin/asciidocjs/node_modules/uglify-js/bin/
Duglifyjs241 if (/^ast|spidermonkey$/.test(output)) {
243 options.output.ast = true;
279 if (/^ast|spidermonkey$/.test(name)) fatal("invalid file name specified");
413 var toplevel = result.ast;
424 print(JSON.stringify(result.ast, function(key, value) {
450 print(JSON.stringify(result.ast.to_mozilla_ast(), null, 2));
453 if (result.ast) {
456 if (!/^ast|code$/.test(name)) opts[name] = options.output[name];
458 … code = UglifyJS.AST_Node.from_mozilla_ast(result.ast.to_mozilla_ast()).print_to_string(opts);
/plugin/asciidocjs/node_modules/pug-filters/node_modules/uglify-js/lib/
Dpropmangle.js71 function mangle_properties(ast, options) { argument
110 ast.walk(new TreeWalker(function(node){
127 return ast.transform(new TreeTransformer(function(node){
/plugin/asciidocjs/node_modules/pug-code-gen/
DREADME.md19 ### `generateCode(ast, options)`
23 `ast` is a fully expanded AST for Pug, with all inclusion, extends, and filters resolved.
58 ### `new generateCode.CodeGenerator(ast, options)`
/plugin/asciidocjs/node_modules/pug-filters/node_modules/uglify-js/bin/
Dextract-props.js31 var ast = U2.parse(code);
33 ast.walk(new U2.TreeWalker(function(node){

1234