mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Reduce errors when a namespace is not found
When the typelib for a namespace is not found, don't emit "namespace not imported" errors. Just emit the one error on the import statement.
This commit is contained in:
parent
402677f687
commit
bc605c5df8
6 changed files with 20 additions and 1 deletions
6
tests/sample_errors/ns_not_found.blp
Normal file
6
tests/sample_errors/ns_not_found.blp
Normal file
|
@ -0,0 +1,6 @@
|
|||
using Gtk 4.0;
|
||||
using NotARealNamespace 1;
|
||||
|
||||
NotARealNamespace.Widget widget {
|
||||
property: true;
|
||||
}
|
1
tests/sample_errors/ns_not_found.err
Normal file
1
tests/sample_errors/ns_not_found.err
Normal file
|
@ -0,0 +1 @@
|
|||
2,7,19,Namespace NotARealNamespace-1 could not be found
|
Loading…
Add table
Add a link
Reference in a new issue