-
Notifications
You must be signed in to change notification settings - Fork 320
/
nodes.ex
117 lines (109 loc) · 3.12 KB
/
nodes.ex
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
defmodule ExDoc.ModuleNode do
@moduledoc """
Structure that represents a module.
"""
defstruct id: nil,
title: nil,
nested_context: nil,
nested_title: nil,
module: nil,
group: nil,
deprecated: nil,
doc: nil,
rendered_doc: nil,
doc_line: nil,
function_groups: [],
docs: [],
typespecs: [],
source_path: nil,
source_url: nil,
type: nil
@type t :: %__MODULE__{
id: nil | String.t(),
title: nil | String.t(),
nested_context: nil | String.t(),
nested_title: nil | String.t(),
module: nil | String.t(),
group: nil | String.t(),
deprecated: nil | String.t(),
function_groups: list(String.t()),
docs: list(),
doc: term(),
rendered_doc: nil | String.t(),
doc_line: non_neg_integer(),
typespecs: list(),
source_path: nil | String.t(),
source_url: nil | String.t(),
type: nil | :module | :exception | :protocol | :impl | :behaviour | :task
}
end
defmodule ExDoc.FunctionNode do
@moduledoc """
Structure that represents an individual function.
"""
defstruct id: nil,
name: nil,
arity: 0,
defaults: [],
deprecated: nil,
doc: nil,
rendered_doc: nil,
type: nil,
signature: nil,
specs: [],
annotations: [],
group: nil,
doc_line: nil,
source_path: nil,
source_url: nil
@type t :: %__MODULE__{
id: nil | String.t(),
name: nil | String.t(),
arity: non_neg_integer,
defaults: non_neg_integer,
doc: term(),
rendered_doc: nil | String.t(),
doc_line: non_neg_integer,
source_path: nil | String.t(),
source_url: nil | String.t(),
group: nil | String.t(),
type: nil | String.t(),
signature: nil | String.t(),
specs: list(),
annotations: list(),
deprecated: nil | String.t()
}
end
defmodule ExDoc.TypeNode do
@moduledoc """
Structure that represents an individual type.
"""
defstruct id: nil,
name: nil,
arity: 0,
type: nil,
deprecated: nil,
doc: nil,
rendered_doc: nil,
doc_line: nil,
source_path: nil,
source_url: nil,
spec: nil,
signature: nil,
annotations: []
@type t :: %__MODULE__{
id: nil | String.t(),
name: nil | String.t(),
arity: non_neg_integer,
type: nil | String.t(),
spec: nil | String.t(),
deprecated: nil | String.t(),
doc: term(),
rendered_doc: nil | String.t(),
doc_line: non_neg_integer,
signature: nil | String.t(),
source_url: nil | String.t(),
source_path: nil | String.t(),
annotations: list()
}
end