Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
0b91ebba
Commit
0b91ebba
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2004-10-19 08:47:40 by afrisch] Give line for type/element loop error message
Original author: afrisch Date: 2004-10-19 08:47:40+00:00
parent
99afe681
Changes
1
Hide whitespace changes
Inline
Side-by-side
schema/schema_parser.ml
View file @
0b91ebba
...
...
@@ -596,8 +596,10 @@ class lazy_resolver =
method
see
(
n
:
pxp_node
)
=
debug_print
"lazy_resolver.see"
;
if
NodeSet
.
mem
n
seen_nodes
then
validation_error
"Types/Elements loop"
;
seen_nodes
<-
NodeSet
.
add
n
seen_nodes
let
line
=
match
n
#
position
with
(
_
,
l
,_
)
->
l
in
validation_error
(
sprintf
"Types/Elements loop (line: %d)"
line
)
else
seen_nodes
<-
NodeSet
.
add
n
seen_nodes
method
private
find_global_component
tag_pred
name
=
let
basename
=
snd
(
Ns
.
split_qname
name
)
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment