1 parent 9055747 commit 565d88dCopy full SHA for 565d88d
1 file changed
symbol/symbol.go
@@ -1,5 +1,23 @@
1
package symbol
2
3
+// SigSource represents the origin of a function signature
4
+type SigSource int
5
+
6
+const (
7
+ // SigSourceDoc indicates signature extracted from docstring
8
+ SigSourceDoc SigSource = iota
9
+ // SigSourceInspect indicates signature from Python inspect module
10
+ SigSourceInspect
11
+ // SigSourceParadigm indicates generic fallback signature
12
+ SigSourceParadigm
13
+)
14
15
+// Signature represents a function signature with its source information
16
+type Signature struct {
17
+ Str string `json:"str"` // The signature string
18
+ Source SigSource `json:"source"` // Where the signature was obtained
19
+}
20
21
type Symbol struct {
22
Name string `json:"name"`
23
Type string `json:"type"`
0 commit comments