mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Rename BroType to Type
This commit is contained in:
parent
c04d9cae45
commit
137e416a03
34 changed files with 367 additions and 359 deletions
|
@ -15,7 +15,8 @@
|
|||
template <class T> class IntrusivePtr;
|
||||
class ListVal;
|
||||
|
||||
FORWARD_DECLARE_NAMESPACED(BroType, zeek);
|
||||
namespace zeek { class Type; }
|
||||
using BroType [[deprecated("Remove in v4.1. Use zeek::Type instead.")]] = zeek::Type;
|
||||
FORWARD_DECLARE_NAMESPACED(ID, zeek::detail);
|
||||
|
||||
class Scope : public BroObj {
|
||||
|
@ -45,9 +46,9 @@ public:
|
|||
{ return attrs; }
|
||||
|
||||
[[deprecated("Remove in v4.1. Use GetReturnTrype().")]]
|
||||
zeek::BroType* ReturnType() const { return return_type.get(); }
|
||||
zeek::Type* ReturnType() const { return return_type.get(); }
|
||||
|
||||
const IntrusivePtr<zeek::BroType>& GetReturnType() const
|
||||
const IntrusivePtr<zeek::Type>& GetReturnType() const
|
||||
{ return return_type; }
|
||||
|
||||
size_t Length() const { return local.size(); }
|
||||
|
@ -70,7 +71,7 @@ public:
|
|||
protected:
|
||||
IntrusivePtr<zeek::detail::ID> scope_id;
|
||||
std::unique_ptr<std::vector<IntrusivePtr<zeek::detail::Attr>>> attrs;
|
||||
IntrusivePtr<zeek::BroType> return_type;
|
||||
IntrusivePtr<zeek::Type> return_type;
|
||||
std::map<std::string, IntrusivePtr<zeek::detail::ID>, std::less<>> local;
|
||||
std::vector<IntrusivePtr<zeek::detail::ID>> inits;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue