-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for function call expressions
- Loading branch information
Showing
10 changed files
with
559 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
pkg/sass-parser/lib/src/expression/__snapshots__/function.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`a function expression toJSON if() 1`] = ` | ||
{ | ||
"arguments": <(cond, true, false)>, | ||
"inputs": [ | ||
{ | ||
"css": "@#{if(cond, true, false)}", | ||
"hasBOM": false, | ||
"id": "<input css _____>", | ||
}, | ||
], | ||
"name": "if", | ||
"raws": {}, | ||
"sassType": "function-call", | ||
} | ||
`; | ||
|
||
exports[`a function expression toJSON with a namespace 1`] = ` | ||
{ | ||
"arguments": <(bar)>, | ||
"inputs": [ | ||
{ | ||
"css": "@#{baz.foo(bar)}", | ||
"hasBOM": false, | ||
"id": "<input css _____>", | ||
}, | ||
], | ||
"name": "foo", | ||
"namespace": "baz", | ||
"raws": {}, | ||
"sassType": "function-call", | ||
"source": <1:4-1:16 in 0>, | ||
} | ||
`; | ||
|
||
exports[`a function expression toJSON without a namespace 1`] = ` | ||
{ | ||
"arguments": <(bar)>, | ||
"inputs": [ | ||
{ | ||
"css": "@#{foo(bar)}", | ||
"hasBOM": false, | ||
"id": "<input css _____>", | ||
}, | ||
], | ||
"name": "foo", | ||
"raws": {}, | ||
"sassType": "function-call", | ||
"source": <1:4-1:12 in 0>, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.