Add forward type declaration representation
This commit is contained in:
73
boot/semantic.cc
Normal file
73
boot/semantic.cc
Normal file
@ -0,0 +1,73 @@
|
||||
/* Name analysis.
|
||||
Copyright (C) 2025 Free Software Foundation, Inc.
|
||||
|
||||
GCC is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3, or (at your option)
|
||||
any later version.
|
||||
|
||||
GCC is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GCC; see the file COPYING3. If not see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "elna/boot/semantic.h"
|
||||
|
||||
namespace elna
|
||||
{
|
||||
namespace boot
|
||||
{
|
||||
alias_type *type::is_alias()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
primitive_type *type::is_primitive()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
record_type *type::is_record()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
union_type *type::is_union()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
type::~type()
|
||||
{
|
||||
}
|
||||
|
||||
alias_type *alias_type::is_alias()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
primitive_type::primitive_type(const std::string& identifier)
|
||||
: identifier(identifier)
|
||||
{
|
||||
}
|
||||
|
||||
primitive_type *primitive_type::is_primitive()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
record_type *record_type::is_record()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
union_type *union_type::is_union()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user