summaryrefslogtreecommitdiff
path: root/source/slang/slang-lookup.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-05-22 14:21:37 -0400
committerGitHub <noreply@github.com>2020-05-22 11:21:37 -0700
commit076a4c06767cca12c5205d950e9cd37451f91488 (patch)
treedc3bcc376e18e5233f61b2cedfa3419717798a01 /source/slang/slang-lookup.cpp
parentdaf53bb2708982a2bcc6d6cc08fe88790ccf0bc2 (diff)
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
Diffstat (limited to 'source/slang/slang-lookup.cpp')
-rw-r--r--source/slang/slang-lookup.cpp10
1 files changed, 5 insertions, 5 deletions
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<GenericDecl>(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<TransparentModifier>())
+ if (m->hasModifier<TransparentModifier>())
{
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<HLSLStaticModifier>() )
+ if( funcDeclRef.getDecl()->hasModifier<HLSLStaticModifier>() )
{
// 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<MutatingAttribute>() )
+ else if( funcDeclRef.getDecl()->hasModifier<MutatingAttribute>() )
{
// In a non-`static` method marked `[mutating]` there is
// an implicit `this` parameter that is mutable.