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

Added deprecated identifier.

parent 189ec382
...@@ -507,6 +507,7 @@ public: ...@@ -507,6 +507,7 @@ public:
// symbols // symbols
std::vector<Symbol *> symbols; std::vector<Symbol *> symbols;
const Identifier *deprecatedId;
// ObjC context keywords: // ObjC context keywords:
const Identifier *objcGetterId; const Identifier *objcGetterId;
const Identifier *objcSetterId; const Identifier *objcSetterId;
...@@ -522,6 +523,8 @@ Control::Control() ...@@ -522,6 +523,8 @@ Control::Control()
{ {
d = new Data(this); d = new Data(this);
d->deprecatedId = findOrInsertIdentifier("deprecated");
d->objcGetterId = findOrInsertIdentifier("getter"); d->objcGetterId = findOrInsertIdentifier("getter");
d->objcSetterId = findOrInsertIdentifier("setter"); d->objcSetterId = findOrInsertIdentifier("setter");
d->objcReadwriteId = findOrInsertIdentifier("readwrite"); d->objcReadwriteId = findOrInsertIdentifier("readwrite");
...@@ -719,6 +722,9 @@ ObjCMethod *Control::newObjCMethod(unsigned sourceLocation, const Name *name) ...@@ -719,6 +722,9 @@ ObjCMethod *Control::newObjCMethod(unsigned sourceLocation, const Name *name)
ObjCPropertyDeclaration *Control::newObjCPropertyDeclaration(unsigned sourceLocation, const Name *name) ObjCPropertyDeclaration *Control::newObjCPropertyDeclaration(unsigned sourceLocation, const Name *name)
{ return d->newObjCPropertyDeclaration(sourceLocation, name); } { return d->newObjCPropertyDeclaration(sourceLocation, name); }
const Identifier *Control::deprecatedId() const
{ return d->deprecatedId; }
const Identifier *Control::objcGetterId() const const Identifier *Control::objcGetterId() const
{ return d->objcGetterId; } { return d->objcGetterId; }
......
...@@ -173,6 +173,7 @@ public: ...@@ -173,6 +173,7 @@ public:
/// Creates a new Objective-C @property declaration symbol. /// Creates a new Objective-C @property declaration symbol.
ObjCPropertyDeclaration *newObjCPropertyDeclaration(unsigned sourceLocation, const Name *name); ObjCPropertyDeclaration *newObjCPropertyDeclaration(unsigned sourceLocation, const Name *name);
const Identifier *deprecatedId() const;
// Objective-C specific context keywords. // Objective-C specific context keywords.
const Identifier *objcGetterId() const; const Identifier *objcGetterId() const;
const Identifier *objcSetterId() 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