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:
@@ -595,9 +595,9 @@ mapParsedParameters(Parser &parser,
|
||||
}
|
||||
|
||||
if (paramInfo.CompileConstLoc.isValid()) {
|
||||
type = new (parser.Context) CompileTimeConstTypeRepr(
|
||||
type = new (parser.Context) CompileTimeLiteralTypeRepr(
|
||||
type, paramInfo.CompileConstLoc);
|
||||
param->setCompileTimeConst();
|
||||
param->setCompileTimeLiteral();
|
||||
}
|
||||
|
||||
if (paramInfo.SendingLoc.isValid()) {
|
||||
|
||||
Reference in New Issue
Block a user