From 076a4c06767cca12c5205d950e9cd37451f91488 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 22 May 2020 14:21:37 -0400 Subject: 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 --- source/slang/slang-mangle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/slang/slang-mangle.cpp') 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(type)) { emitRaw(context, "a"); - emitSimpleIntVal(context, arrType->ArrayLength); + emitSimpleIntVal(context, arrType->arrayLength); emitType(context, arrType->baseType); } else if( auto taggedUnionType = dynamicCast(type) ) @@ -276,8 +276,8 @@ namespace Slang // Special case: need a way to tell prefix and postfix unary // operators apart. { - if(declRef.getDecl()->HasModifier()) emitRaw(context, "P"); - if(declRef.getDecl()->HasModifier()) emitRaw(context, "p"); + if(declRef.getDecl()->hasModifier()) emitRaw(context, "P"); + if(declRef.getDecl()->hasModifier()) emitRaw(context, "p"); } -- cgit v1.2.3