Saner determination of a declared type's name (now short + full name)
at the time the type is introduced to a scope.
diff --git a/Method.h b/Method.h
index a13526e..a4e13d4 100644
--- a/Method.h
+++ b/Method.h
@@ -10,19 +10,7 @@
struct Formatter;
struct Type;
-
-struct TypedVar {
- TypedVar(const char *name, Type *type);
-
- std::string name() const;
- const Type &type() const;
-
-private:
- std::string mName;
- Type *mType;
-
- DISALLOW_COPY_AND_ASSIGN(TypedVar);
-};
+struct TypedVar;
struct Method {
Method(const char *name,
@@ -43,6 +31,19 @@
DISALLOW_COPY_AND_ASSIGN(Method);
};
+struct TypedVar {
+ TypedVar(const char *name, Type *type);
+
+ std::string name() const;
+ const Type &type() const;
+
+private:
+ std::string mName;
+ Type *mType;
+
+ DISALLOW_COPY_AND_ASSIGN(TypedVar);
+};
+
} // namespace android
#endif // METHOD_H_