diff options
| author | 2009-09-03 15:18:14 -0700 | |
|---|---|---|
| committer | 2009-09-03 15:19:21 -0700 | |
| commit | be8e36e32b9cb2bb37e28e4c0d414ee0e46c84a2 (patch) | |
| tree | 34ae4ff9404e97d9c3b858903b0a414149671ac9 /tools/aidl/AST.cpp | |
| parent | 44b283dc27ed8ba5a946d809489f29b4ae88cb15 (diff) | |
| parent | 8f4b5a561813ee8c22d2b8e73c33299471d4a3f3 (diff) | |
merge from donut
Diffstat (limited to 'tools/aidl/AST.cpp')
| -rwxr-xr-x | tools/aidl/AST.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/aidl/AST.cpp b/tools/aidl/AST.cpp index 1856cb9d093a..752ef7cc8480 100755 --- a/tools/aidl/AST.cpp +++ b/tools/aidl/AST.cpp @@ -6,6 +6,10 @@ WriteModifiers(FILE* to, int mod, int mask) { int m = mod & mask; + if (m & OVERRIDE) { + fprintf(to, "@Override "); + } + if ((m & SCOPE_MASK) == PUBLIC) { fprintf(to, "public "); } @@ -79,7 +83,7 @@ Field::Write(FILE* to) if (this->comment.length() != 0) { fprintf(to, "%s\n", this->comment.c_str()); } - WriteModifiers(to, this->modifiers, SCOPE_MASK | STATIC | FINAL); + WriteModifiers(to, this->modifiers, SCOPE_MASK | STATIC | FINAL | OVERRIDE); fprintf(to, "%s %s", this->variable->type->QualifiedName().c_str(), this->variable->name.c_str()); if (this->value.length() != 0) { @@ -674,7 +678,7 @@ Method::Write(FILE* to) fprintf(to, "%s\n", this->comment.c_str()); } - WriteModifiers(to, this->modifiers, SCOPE_MASK | STATIC | FINAL); + WriteModifiers(to, this->modifiers, SCOPE_MASK | STATIC | FINAL | OVERRIDE); if (this->returnType != NULL) { string dim; |