Assign scopes as a separate step.

This commit is contained in:
chriseth
2020-09-02 20:45:33 +02:00
parent 767d06b297
commit 2934a1f037
10 changed files with 147 additions and 18 deletions
+2 -2
View File
@@ -108,10 +108,10 @@ struct ScopableAnnotation
virtual ~ScopableAnnotation() = default;
/// The scope this declaration resides in. Can be nullptr if it is the global scope.
/// Available only after name and type resolution step.
/// Filled by the Scoper.
ASTNode const* scope = nullptr;
/// Pointer to the contract this declaration resides in. Can be nullptr if the current scope
/// is not part of a contract. Available only after name and type resolution step.
/// is not part of a contract. Filled by the Scoper.
ContractDefinition const* contract = nullptr;
};