Internals: Add origNameProtect. No functional change intended.

This commit is contained in:
Wilson Snyder
2019-12-24 08:47:30 -05:00
parent c8daab3b46
commit 37b9f254a2
3 changed files with 8 additions and 3 deletions
+3
View File
@@ -146,6 +146,9 @@ string AstNode::encodeNumber(vlsint64_t num) {
string AstNode::nameProtect() const {
return VIdProtect::protectIf(name(), protect());
}
string AstNode::origNameProtect() const {
return VIdProtect::protectIf(origName(), protect());
}
string AstNode::shortName() const {
string pretty = name();