mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rename '_const' attribute to 'CompileTimeLiteral'
To pave the way for the new experimental feature which will operate on '@const' attribute and expand the scope of what's currently handled by '_const' without breaking compatibility, for now.
This commit is contained in:
@@ -2439,7 +2439,7 @@ class ConstExtractor: public ASTWalker {
|
||||
}
|
||||
assert(ReferencedDecl);
|
||||
if (auto *VAR = dyn_cast<VarDecl>(ReferencedDecl)) {
|
||||
if (!VAR->getAttrs().hasAttribute<CompileTimeConstAttr>()) {
|
||||
if (!VAR->getAttrs().hasAttribute<CompileTimeLiteralAttr>()) {
|
||||
return false;
|
||||
}
|
||||
if (auto *PD = VAR->getParentPatternBinding()) {
|
||||
|
||||
Reference in New Issue
Block a user