File tree Expand file tree Collapse file tree
fixtures/update-expression Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ The value is {{ counter ++ }}
Original file line number Diff line number Diff line change 1+ let out = "" ;
2+ let $lineNumber = 1 ;
3+ let $filename = "{{ __dirname }}index.edge" ;
4+ try {
5+ out += "The value is " ;
6+ out += `${ ctx . escape ( state . counter ++ ) } ` ;
7+ } catch ( error ) {
8+ ctx . reThrow ( error , $filename , $lineNumber ) ;
9+ }
10+ return out ;
Original file line number Diff line number Diff line change @@ -30,3 +30,4 @@ export { default as ReturnStatement } from './return_statement.js'
3030export { default as ThisExpression } from './this_expression.js'
3131export { default as ChainExpression } from './chain_expression.js'
3232export { default as SpreadElement } from './spread_element.js'
33+ export { default as UpdateExpression } from './update_expression.ts'
Original file line number Diff line number Diff line change 1+ /*
2+ * edge-parser
3+ *
4+ * (c) Harminder Virk <virk@adonisjs.com>
5+ *
6+ * For the full copyright and license information, please view the LICENSE
7+ * file that was distributed with this source code.
8+ */
9+
10+ import { transformAst } from '../parser/transform_ast.js'
11+ import { type Parser } from '../parser/main.js'
12+
13+ export default {
14+ toStatement ( statement : any , filename : string , parser : Parser ) {
15+ statement . argument = transformAst ( statement . argument , filename , parser )
16+ return statement
17+ } ,
18+ }
You can’t perform that action at this time.
0 commit comments