diff options
Diffstat (limited to 'CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Provides.cpp')
-rw-r--r-- | CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Provides.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Provides.cpp b/CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Provides.cpp index e20e60e344e..52c89b1fe81 100644 --- a/CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Provides.cpp +++ b/CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Provides.cpp @@ -44,21 +44,26 @@ namespace CCF } catch (Resolve const&) { - cerr << "error: invalid provides declaration" << endl; + cerr << ctx.file () << ":" << id->line () << ": error: " + << "invalid provides declaration" << endl; throw; } } catch (NotFound const&) { - cerr << "no interface with name \'" << name + cerr << ctx.file () << ":" << id->line () << ": error: " + << "no interface with name \'" << name << "\' visible from scope \'" << from << "\'" << endl; } catch (WrongType const&) { - cerr << "declaration with name \'" << name + cerr << ctx.file () << ":" << id->line () << ": error: " + << "declaration with name \'" << name << "\' visible from scope \'" << from << "\' is not an eventtype declaration" << endl; - cerr << "using non-interface type in provides declaration is " + + cerr << ctx.file () << ":" << id->line () << ": error: " + << "using non-interface type in provides declaration is " << "illegal" << endl; } } @@ -70,7 +75,9 @@ namespace CCF if (type_) { - Provider& p (ctx.tu ().new_node<Provider> ()); + Provider& p ( + ctx.tu ().new_node<Provider> ( + ctx.file (), id->line ())); ctx.tu ().new_edge<Belongs> (p, *type_); ctx.tu ().new_edge<Defines> (ctx.scope (), p, id->lexeme ()); |