Commit 58f5b02d authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Added deprecated identifier.

parent 189ec382
......@@ -507,6 +507,7 @@ public:
// symbols
std::vector<Symbol *> symbols;
const Identifier *deprecatedId;
// ObjC context keywords:
const Identifier *objcGetterId;
const Identifier *objcSetterId;
......@@ -522,6 +523,8 @@ Control::Control()
{
d = new Data(this);
d->deprecatedId = findOrInsertIdentifier("deprecated");
d->objcGetterId = findOrInsertIdentifier("getter");
d->objcSetterId = findOrInsertIdentifier("setter");
d->objcReadwriteId = findOrInsertIdentifier("readwrite");
......@@ -719,6 +722,9 @@ ObjCMethod *Control::newObjCMethod(unsigned sourceLocation, const Name *name)
ObjCPropertyDeclaration *Control::newObjCPropertyDeclaration(unsigned sourceLocation, const Name *name)
{ return d->newObjCPropertyDeclaration(sourceLocation, name); }
const Identifier *Control::deprecatedId() const
{ return d->deprecatedId; }
const Identifier *Control::objcGetterId() const
{ return d->objcGetterId; }
......
......@@ -173,6 +173,7 @@ public:
/// Creates a new Objective-C @property declaration symbol.
ObjCPropertyDeclaration *newObjCPropertyDeclaration(unsigned sourceLocation, const Name *name);
const Identifier *deprecatedId() const;
// Objective-C specific context keywords.
const Identifier *objcGetterId() const;
const Identifier *objcSetterId() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment