Lines Matching refs:Scope
17 #include "Scope.h"
32 Scope::Scope(const char* localName, const FQName& fullName, const Location& location, Scope* parent)
34 Scope::~Scope(){}
36 void Scope::addType(NamedType* type) {
42 status_t Scope::validateUniqueNames() const {
46 << "' is already declared in the scope at " << type->location() << std::endl;
53 NamedType *Scope::lookupType(const FQName &fqName) const {
72 // more than one names, but the first name is not a scope
75 Scope *outerScope = static_cast<Scope *>(outerType);
83 LocalIdentifier *Scope::lookupIdentifier(const std::string & /*name*/) const {
87 bool Scope::isScope() const {
91 Interface *Scope::getInterface() const {
99 bool Scope::containsInterfaces() const {
109 const std::vector<Annotation*>& Scope::annotations() const {
113 void Scope::setAnnotations(std::vector<Annotation*>* annotations) {
119 std::vector<const Type*> Scope::getDefinedTypes() const {
125 std::vector<const ConstantExpression*> Scope::getConstantExpressions() const {
134 void Scope::topologicalReorder(const std::unordered_map<const Type*, size_t>& reversedOrder) {
149 void Scope::emitTypeDeclarations(Formatter& out) const {
168 void Scope::emitGlobalTypeDeclarations(Formatter& out) const {
174 void Scope::emitPackageTypeDeclarations(Formatter& out) const {
180 void Scope::emitPackageHwDeclarations(Formatter& out) const {
186 void Scope::emitJavaTypeDeclarations(Formatter& out, bool atTopLevel) const {
197 void Scope::emitTypeDefinitions(Formatter& out, const std::string& prefix) const {
203 const std::vector<NamedType *> &Scope::getSubTypes() const {
207 void Scope::emitVtsTypeDeclarations(Formatter& out) const {
213 bool Scope::deepIsJavaCompatible(std::unordered_set<const Type*>* visited) const {
222 void Scope::appendToExportedTypesVector(
232 Scope* parent)
233 : Scope(localName, fullName, location, parent) {}
237 return "(root scope)";
242 return Scope::validate();