summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-syntax.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-syntax.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-syntax.cpp')
-rw-r--r--source/slang/slang-syntax.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp
index 54d27bd57..e7876fa04 100644
--- a/source/slang/slang-syntax.cpp
+++ b/source/slang/slang-syntax.cpp
@@ -926,7 +926,7 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
String NamedExpressionType::toString()
{
- return getText(declRef.GetName());
+ return getText(declRef.getName());
}
bool NamedExpressionType::equalsImpl(Type * /*type*/)
@@ -938,7 +938,7 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
RefPtr<Type> NamedExpressionType::createCanonicalType()
{
if (!innerType)
- innerType = GetType(m_astBuilder, declRef);
+ innerType = getType(m_astBuilder, declRef);
return innerType->getCanonicalType();
}
@@ -1233,7 +1233,7 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
String GenericParamIntVal::toString()
{
- return getText(declRef.GetName());
+ return getText(declRef.getName());
}
HashCode GenericParamIntVal::getHashCode()
@@ -1891,7 +1891,7 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
}
// Convenience accessors for common properties of declarations
- Name* DeclRefBase::GetName() const
+ Name* DeclRefBase::getName() const
{
return decl->nameAndLoc.name;
}
@@ -1901,7 +1901,7 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
return decl->loc;
}
- DeclRefBase DeclRefBase::GetParent() const
+ DeclRefBase DeclRefBase::getParent() const
{
// Want access to the free function (the 'as' method by default gets priority)
// Can access as method with this->as because it removes any ambiguity.
@@ -1974,7 +1974,7 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
// IntVal
- IntegerLiteralValue GetIntVal(RefPtr<IntVal> val)
+ IntegerLiteralValue getIntVal(RefPtr<IntVal> val)
{
if (auto constantVal = as<ConstantIntVal>(val))
{
@@ -2057,11 +2057,11 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt
{
RefPtr<FuncType> funcType = astBuilder->create<FuncType>();
- funcType->resultType = GetResultType(astBuilder, declRef);
- for (auto paramDeclRef : GetParameters(declRef))
+ funcType->resultType = getResultType(astBuilder, declRef);
+ for (auto paramDeclRef : getParameters(declRef))
{
auto paramDecl = paramDeclRef.getDecl();
- auto paramType = GetType(astBuilder, paramDeclRef);
+ auto paramType = getType(astBuilder, paramDeclRef);
if( paramDecl->findModifier<RefModifier>() )
{
paramType = astBuilder->getRefType(paramType);