1<===> input.scss
2@function _test1() {
3  @return 'hello';
4}
5
6@function -test2() {
7  @return 'hello';
8}
9
10@function test() {
11  @return 'world';
12}
13
14@mixin _test1() {
15  mixin: true;
16}
17
18@mixin -test2() {
19  mixin: true;
20}
21
22@mixin test() {
23  mixin: true;
24}
25
26$-test1: true;
27$_test2: true;
28$test: true;
29
30.test {
31  function: function-exists('_test1');
32  function: function-exists('-test1');
33  function: function-exists('_test2');
34  function: function-exists('-test2');
35  function: function-exists('test1');
36  function: function-exists('test2');
37  function: function-exists('test');
38  mixin: mixin-exists('_test1');
39  mixin: mixin-exists('-test1');
40  mixin: mixin-exists('_test2');
41  mixin: mixin-exists('-test2');
42  mixin: mixin-exists('test1');
43  mixin: mixin-exists('test2');
44  mixin: mixin-exists('test');
45  variable: variable-exists('_test1');
46  variable: variable-exists('-test1');
47  variable: variable-exists('_test2');
48  variable: variable-exists('-test2');
49  variable: variable-exists('test1');
50  variable: variable-exists('test2');
51  variable: variable-exists('test');
52  global-variable: global-variable-exists('_test1');
53  global-variable: global-variable-exists('-test1');
54  global-variable: global-variable-exists('_test2');
55  global-variable: global-variable-exists('-test2');
56  global-variable: global-variable-exists('test1');
57  global-variable: global-variable-exists('test2');
58  global-variable: global-variable-exists('test');
59}
60
61<===> output.css
62.test {
63  function: true;
64  function: true;
65  function: true;
66  function: true;
67  function: false;
68  function: false;
69  function: true;
70  mixin: true;
71  mixin: true;
72  mixin: true;
73  mixin: true;
74  mixin: false;
75  mixin: false;
76  mixin: true;
77  variable: true;
78  variable: true;
79  variable: true;
80  variable: true;
81  variable: false;
82  variable: false;
83  variable: true;
84  global-variable: true;
85  global-variable: true;
86  global-variable: true;
87  global-variable: true;
88  global-variable: false;
89  global-variable: false;
90  global-variable: true;
91}
92