comparison basic/Attribute.d @ 148:6ec686d9c87d

Fixed some for parsing, and removed a little ugly bug.
author Anders Johnsen <skabet@gmail.com>
date Mon, 21 Jul 2008 20:28:11 +0200
parents 6e6355fb5f0f
children
comparison
equal deleted inserted replaced
147:060b6eb16db9 148:6ec686d9c87d
102 bool getConst() { return att & Const ? true : false; } 102 bool getConst() { return att & Const ? true : false; }
103 void setAbstract() { att |= Abstract; } 103 void setAbstract() { att |= Abstract; }
104 bool getAbstract() { return att & Abstract ? true : false; } 104 bool getAbstract() { return att & Abstract ? true : false; }
105 void setOverride() { att |= Override; } 105 void setOverride() { att |= Override; }
106 bool getOverride() { return att & Override ? true : false; } 106 bool getOverride() { return att & Override ? true : false; }
107 void setDepracted() { att |= Depracted; } 107 void setDeprecated(){ att |= Deprecated; }
108 bool getDepracted() { return att & Depracted ? true : false; } 108 bool getDeprecated(){ return att & Deprecated ? true : false; }
109 void setAuto() { att |= Auto; } 109 void setAuto() { att |= Auto; }
110 bool getAuto() { return att & Auto ? true : false; } 110 bool getAuto() { return att & Auto ? true : false; }
111 111
112 char[] toString() 112 char[] toString()
113 { 113 {
121 static const uint Static = 1<<5; 121 static const uint Static = 1<<5;
122 static const uint Final = 1<<6; 122 static const uint Final = 1<<6;
123 static const uint Const = 1<<7; 123 static const uint Const = 1<<7;
124 static const uint Abstract = 1<<8; 124 static const uint Abstract = 1<<8;
125 static const uint Override = 1<<9; 125 static const uint Override = 1<<9;
126 static const uint Depracted = 1<<10; 126 static const uint Deprecated = 1<<10;
127 static const uint Auto = 1<<11; 127 static const uint Auto = 1<<11;
128 } 128 }