From 076a4c06767cca12c5205d950e9cd37451f91488 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 22 May 2020 14:21:37 -0400 Subject: Tidy up around AST nodes (#1353) * Fields from upper to lower case in slang-ast-decl.h * Lower camel field names in slang-ast-stmt.h * Fix fields in slang-ast-expr.h * slang-ast-type.h make fields lowerCamel. * slang-ast-base.h members functions lowerCamel. * Method names in slang-ast-type.h to lowerCamel. * GetCanonicalType -> getCanonicalType * Substitute -> substitute * Equals -> equals ToString -> toString * ParentDecl -> parentDecl Members -> members --- source/slang/slang-lookup.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/slang/slang-lookup.cpp') diff --git a/source/slang/slang-lookup.cpp b/source/slang/slang-lookup.cpp index 7fefa1241..70e6a23ce 100644 --- a/source/slang/slang-lookup.cpp +++ b/source/slang/slang-lookup.cpp @@ -44,18 +44,18 @@ void buildMemberDictionary(ContainerDecl* decl) // are we a generic? GenericDecl* genericDecl = as(decl); - const Index membersCount = decl->Members.getCount(); + const Index membersCount = decl->members.getCount(); SLANG_ASSERT(decl->dictionaryLastCount >= 0 && decl->dictionaryLastCount <= membersCount); for (Index i = decl->dictionaryLastCount; i < membersCount; ++i) { - Decl* m = decl->Members[i]; + Decl* m = decl->members[i]; auto name = m->getName(); // Add any transparent members to a separate list for lookup - if (m->HasModifier()) + if (m->hasModifier()) { TransparentMemberInfo info; info.decl = m; @@ -734,14 +734,14 @@ static void _lookUpInScopes( // The implicit `this`/`This` for a function-like declaration // depends on modifiers attached to the declaration. // - if( funcDeclRef.getDecl()->HasModifier() ) + if( funcDeclRef.getDecl()->hasModifier() ) { // A `static` method only has access to an implicit `This`, // and does not have a `this` expression available. // thisParameterMode = LookupResultItem::Breadcrumb::ThisParameterMode::Type; } - else if( funcDeclRef.getDecl()->HasModifier() ) + else if( funcDeclRef.getDecl()->hasModifier() ) { // In a non-`static` method marked `[mutating]` there is // an implicit `this` parameter that is mutable. -- cgit v1.2.3