Refactor AST::addScopedType.
Makes NamedType receive full name in constructor.
Adds test that defined type names are unique within one scope.
Test: mma
Test: hidl_error_test
Change-Id: If218e1febc2af9f44c5908408f67e772efdda18e
diff --git a/Interface.cpp b/Interface.cpp
index 1ae6638..0fcd081 100644
--- a/Interface.cpp
+++ b/Interface.cpp
@@ -69,9 +69,9 @@
LAST_HIDL_TRANSACTION = 0x0fffffff,
};
-Interface::Interface(const char* localName, const Location& location, Scope* parent,
- const Reference<Type>& superType)
- : Scope(localName, location, parent),
+Interface::Interface(const char* localName, const FQName& fullName, const Location& location,
+ Scope* parent, const Reference<Type>& superType)
+ : Scope(localName, fullName, location, parent),
mSuperType(superType),
mIsJavaCompatibleInProgress(false) {}