From f3d70425fa339a0d8f39b920235c98280d250bbb Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 29 May 2020 08:36:10 -0400 Subject: 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. --- source/slang/slang-syntax.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/slang/slang-syntax.cpp') 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 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 val) + IntegerLiteralValue getIntVal(RefPtr val) { if (auto constantVal = as(val)) { @@ -2057,11 +2057,11 @@ Index getFilterCountImpl(const ReflectClassInfo& clsInfo, MemberFilterStyle filt { RefPtr funcType = astBuilder->create(); - 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() ) { paramType = astBuilder->getRefType(paramType); -- cgit v1.2.3