mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add ScopableAnnotation
This commit is contained in:
parent
d420fe3786
commit
bc71f61467
@ -75,6 +75,13 @@ struct SourceUnitAnnotation: ASTAnnotation
|
|||||||
std::set<ExperimentalFeature> experimentalFeatures;
|
std::set<ExperimentalFeature> experimentalFeatures;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct ScopableAnnotation
|
||||||
|
{
|
||||||
|
/// 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 = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
struct ImportAnnotation: ASTAnnotation
|
struct ImportAnnotation: ASTAnnotation
|
||||||
{
|
{
|
||||||
/// The absolute path of the source unit to import.
|
/// The absolute path of the source unit to import.
|
||||||
|
Loading…
Reference in New Issue
Block a user