mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move all references to scope into annotation
This commit is contained in:
@@ -159,8 +159,7 @@ public:
|
||||
virtual ~Scopable() = default;
|
||||
/// @returns the scope this declaration resides in. Can be nullptr if it is the global scope.
|
||||
/// Available only after name and type resolution step.
|
||||
ASTNode const* scope() const { return m_scope; }
|
||||
void setScope(ASTNode const* _scope) { m_scope = _scope; }
|
||||
ASTNode const* scope() const { return annotation().scope; }
|
||||
|
||||
/// @returns the source unit this scopable is present in.
|
||||
SourceUnit const& sourceUnit() const;
|
||||
@@ -172,8 +171,7 @@ public:
|
||||
/// Can be combined with annotation().canonicalName (if present) to form a globally unique name.
|
||||
std::string sourceUnitName() const;
|
||||
|
||||
protected:
|
||||
ASTNode const* m_scope = nullptr;
|
||||
virtual ScopableAnnotation& annotation() const = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user