@@ -3,12 +3,12 @@ export findfirst, findall
3
3
# Find Node
4
4
# ###############################################################
5
5
# findfirst
6
- function findfirst (name:: String , doc:: Document , argAmlType:: Type{<:AbsNode} )
6
+ function Base . findfirst (name:: String , doc:: Document , argAmlType:: Type{<:AbsNode} )
7
7
elm = findfirst (name, root (doc), argAmlType)
8
8
return elm
9
9
end
10
10
11
- function findfirst (name:: String , node:: Node , argAmlType:: Type{<:AbsNormal} )
11
+ function Base . findfirst (name:: String , node:: Node , argAmlType:: Type{<:AbsNormal} )
12
12
# if hasdocument(node)
13
13
# elm = findfirst(name, node)
14
14
# else
@@ -17,24 +17,24 @@ function findfirst(name::String, node::Node, argAmlType::Type{<:AbsNormal})
17
17
return elm
18
18
end
19
19
20
- function findfirst (name:: String , node:: Node , argAmlType:: Type{AbsAttribute} )
20
+ function Base . findfirst (name:: String , node:: Node , argAmlType:: Type{AbsAttribute} )
21
21
elms = findfirstatt (name, node)
22
22
return elms
23
23
end
24
24
25
- function findfirst (indexstr:: String , node:: Node , argAmlType:: Type{AbsText} )
25
+ function Base . findfirst (indexstr:: String , node:: Node , argAmlType:: Type{AbsText} )
26
26
index = parse_textindex (indexstr)
27
27
elm = findfirsttext (index, node)
28
28
return elm
29
29
end
30
30
# ###############################################################
31
31
# findall
32
- function findall (name:: String , doc:: Document , argAmlType:: Type{<:AbsNode} )
32
+ function Base . findall (name:: String , doc:: Document , argAmlType:: Type{<:AbsNode} )
33
33
elms = findall (name, root (doc), argAmlType)
34
34
return elms
35
35
end
36
36
37
- function findall (name:: String , node:: Node , argAmlType:: Type{<:AbsNormal} )
37
+ function Base . findall (name:: String , node:: Node , argAmlType:: Type{<:AbsNormal} )
38
38
# if hasdocument(node)
39
39
# elms = findall(name, node) # a vector of Node elements
40
40
# else
@@ -43,12 +43,12 @@ function findall(name::String, node::Node, argAmlType::Type{<:AbsNormal})
43
43
return elms
44
44
end
45
45
46
- function findall (name:: String , node:: Node , argAmlType:: Type{AbsAttribute} )
46
+ function Base . findall (name:: String , node:: Node , argAmlType:: Type{AbsAttribute} )
47
47
elms = findallatt (name, node)
48
48
return elms
49
49
end
50
50
51
- function findall (indicesstr:: String , node:: Node , argAmlType:: Type{AbsText} )
51
+ function Base . findall (indicesstr:: String , node:: Node , argAmlType:: Type{AbsText} )
52
52
indices = parse_textindices (indicesstr)
53
53
elms = findalltext (indices, node)
54
54
return elms
0 commit comments