blob: bb4cf12b9af53e1aa4cded44db598ffac57ca44d (
plain)
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
|
// file : CCF/IDL2/SemanticAction/Impl/Native.cpp
// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id : $Id$
#include "CCF/IDL2/SemanticGraph/Native.hpp"
#include "CCF/IDL2/SemanticAction/Impl/Native.hpp"
#include <iostream>
using std::cerr;
using std::endl;
namespace CCF
{
namespace IDL2
{
namespace SemanticAction
{
namespace Impl
{
using namespace SemanticGraph;
Native::
Native (Context& c)
: Base (c)
{
}
void Native::
name (SimpleIdentifierPtr const& id)
{
if (ctx.trace ()) cerr << "native " << id << endl;
SimpleName name (id->lexeme ());
SemanticGraph::Native& n (
ctx.tu ().new_node<SemanticGraph::Native> ());
ctx.tu ().new_edge<Defines> (ctx.scope (), n, name);
}
void Native::
end ()
{
if (ctx.trace ()) cerr << "end" << endl;
}
}
}
}
}
|