summaryrefslogtreecommitdiff
path: root/source/slang/slang-lookup.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-05-29 08:36:10 -0400
committerGitHub <noreply@github.com>2020-05-29 08:36:10 -0400
commitf3d70425fa339a0d8f39b920235c98280d250bbb (patch)
tree24923917e3ca43fdc1b3ca67ee589973c92a4b60 /source/slang/slang-lookup.cpp
parent95597d77b131ee2c41c2eb4481844c315b2c82eb (diff)
Feature/ast syntax standard (#1360)
* Small improvements to documentation and code around DiagnosticSink * Made methods/functions in slang-syntax.h be lowerCamel Removed some commented out source (was placed elsewhere in code) * Making AST related methods and function lowerCamel. Made IsLeftValue -> isLeftValue.
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 b174d068c..fae00c6a2 100644
--- a/source/slang/slang-lookup.cpp
+++ b/source/slang/slang-lookup.cpp
@@ -356,7 +356,7 @@ static void _lookUpMembersInSuperType(
// The super-type in the constraint (e.g., `Foo` in `T : Foo`)
// will tell us a type we should use for lookup.
//
- auto superType = GetSup(astBuilder, intermediateIsSuperConstraint);
+ auto superType = getSup(astBuilder, intermediateIsSuperConstraint);
//
// We will go ahead and perform lookup using `superType`,
// after dealing with some details.
@@ -422,7 +422,7 @@ static void _lookUpMembersInSuperTypeDeclImpl(
// then the members it provides can only be discovered by looking
// at the constraints that are placed on that type.
- auto genericDeclRef = genericTypeParamDeclRef.GetParent().as<GenericDecl>();
+ auto genericDeclRef = genericTypeParamDeclRef.getParent().as<GenericDecl>();
assert(genericDeclRef);
for(auto constraintDeclRef : getMembersOfType<GenericTypeConstraintDecl>(genericDeclRef))
@@ -437,7 +437,7 @@ static void _lookUpMembersInSuperTypeDeclImpl(
// We want constraints of the form `T : Foo` where `T` is the
// generic parameter in question, and `Foo` is whatever we are
// constraining it to.
- auto subType = GetSub(astBuilder, constraintDeclRef);
+ auto subType = getSub(astBuilder, constraintDeclRef);
auto subDeclRefType = as<DeclRefType>(subType);
if(!subDeclRefType)
continue;
@@ -492,7 +492,7 @@ static void _lookUpMembersInSuperTypeDeclImpl(
// directly with that type.
//
ensureDecl(request.semantics, aggTypeDeclRef.getDecl(), DeclCheckState::ReadyForLookup);
- for(auto extDecl = GetCandidateExtensions(aggTypeDeclRef); extDecl; extDecl = extDecl->nextCandidateExtension)
+ for(auto extDecl = getCandidateExtensions(aggTypeDeclRef); extDecl; extDecl = extDecl->nextCandidateExtension)
{
// Note: In this case `extDecl` is an extension that was declared to apply
// (conditionally) to `aggTypeDeclRef`, which is the decl-ref part of
@@ -691,7 +691,7 @@ static void _lookUpInScopes(
// declaration, then the `this` expression will have
// a type that uses the "target type" of the `extension`.
//
- type = GetTargetType(astBuilder, extDeclRef);
+ type = getTargetType(astBuilder, extDeclRef);
}
else
{