summaryrefslogtreecommitdiff
path: root/source/slang/slang-mangle.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-mangle.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-mangle.cpp')
-rw-r--r--source/slang/slang-mangle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp
index 19e6ed234..0d12e2f69 100644
--- a/source/slang/slang-mangle.cpp
+++ b/source/slang/slang-mangle.cpp
@@ -139,7 +139,7 @@ namespace Slang
else if (auto arrType = dynamicCast<ArrayExpressionType>(type))
{
emitRaw(context, "a");
- emitSimpleIntVal(context, arrType->ArrayLength);
+ emitSimpleIntVal(context, arrType->arrayLength);
emitType(context, arrType->baseType);
}
else if( auto taggedUnionType = dynamicCast<TaggedUnionType>(type) )
@@ -276,8 +276,8 @@ namespace Slang
// Special case: need a way to tell prefix and postfix unary
// operators apart.
{
- if(declRef.getDecl()->HasModifier<PostfixModifier>()) emitRaw(context, "P");
- if(declRef.getDecl()->HasModifier<PrefixModifier>()) emitRaw(context, "p");
+ if(declRef.getDecl()->hasModifier<PostfixModifier>()) emitRaw(context, "P");
+ if(declRef.getDecl()->hasModifier<PrefixModifier>()) emitRaw(context, "p");
}