diff options
Diffstat (limited to 'cli/cli/semantics/class.cxx')
-rw-r--r-- | cli/cli/semantics/class.cxx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/cli/cli/semantics/class.cxx b/cli/cli/semantics/class.cxx new file mode 100644 index 0000000..494d5d0 --- /dev/null +++ b/cli/cli/semantics/class.cxx @@ -0,0 +1,39 @@ +// file : cli/semantics/class.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// license : MIT; see accompanying LICENSE file + +#include <cutl/compiler/type-info.hxx> + +#include <cli/semantics/class.hxx> + +namespace semantics +{ + // type info + // + namespace + { + struct init + { + init () + { + using compiler::type_info; + + // inherits + // + { + type_info ti (typeid (inherits)); + ti.add_base (typeid (edge)); + insert (ti); + } + + // class_ + // + { + type_info ti (typeid (class_)); + ti.add_base (typeid (scope)); + insert (ti); + } + } + } init_; + } +} |