Debian Codegraph @

tests/inputs/clarityfiles.clar

raw
1 ;; Test fixture for Clarity language
2 ;; This file covers various comment and code patterns
3
4 (define-constant TEST_CONSTANT u100)
5
6 ;; Full line comment before code
7 (define-read-only (test-function (param uint))
8 (ok param)
9 )
10
11 ;; Another comment
12 (define-map test-map
13 uint
14 bool
15 )
16
17 (define-public (public-function)
18 ;; Inline comment in function
19 (begin
20 ;; Nested comment
21 (ok true)
22 )
23 )
24
25 ;; Trailing comment on code line
26 (define-data-var counter uint u0) ;; end of line comment
27
28 ;; Multiple blank lines above
29
30 (define-constant ANOTHER_CONSTANT u200)
31