blob: 8b51310fb9a7909264bb92dbb338ca8923528728 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#
# Interface of test library
#
# Copyright © 2026 Samuel Lidén Borell <samuel@kodafritt.se>
#
# SPDX-License-Identifier: EUPL-1.2+ OR LGPL-2.1-or-later
#
versions
0.0.0
func somelib_toplevel
# Test function
since 0.0.0
bool b
int x
int y
return
int r
class SomeClass
# A test class
# (this is an example of a documentation comment)
since 0.0.0
# unversioned symbols
# TODO add warning when depending on an unversioned symbol in another module
int instvar_u_ctorinit
int instvar_u_ctorinit_var!
int instvar_u_const = 123
# TODO forbid this?
int instvar_u_fixedinit_var! = 123
int instvar_v_ctorinit since 0.0.0
int instvar_v_ctorinit_var! since 0.0.0
int instvar_v_const since 0.0.0 = 123
# TODO forbid this?
int instvar_v_fixedinit_var! since 0.0.0 = 123
# XXX Change to SomeClass.voidfunc ?
# but still require class definitions to be contiguous?
func voidfunc
since 0.0.0
func param_i
since 0.0.0
int x
|