Skip to content

Commit

Permalink
Rename extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
albertospelta committed Mar 4, 2024
1 parent 93f6ff8 commit 77bdf72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal string DeobfuscateExpression(string expression)
case DaxToken.DELIMITED_COMMENT:
tokenText = _dictionary.GetValue(tokenText);
break;
case DaxToken.COLUMN_OR_MEASURE when token.IsReservedExtensionColumn():
case DaxToken.COLUMN_OR_MEASURE when token.IsReservedTokenName():
tokenText = token.Replace(expression, tokenText);
break;
case DaxToken.TABLE_OR_VARIABLE when token.IsVariable():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal string ObfuscateExpression(string expression)
case DaxToken.DELIMITED_COMMENT:
tokenText = ObfuscateText(new DaxText(tokenText)).ObfuscatedValue;
break;
case DaxToken.COLUMN_OR_MEASURE when token.IsReservedExtensionColumn():
case DaxToken.COLUMN_OR_MEASURE when token.IsReservedTokenName():
tokenText = token.Replace(expression, tokenText);
break;
case DaxToken.TABLE_OR_VARIABLE when token.IsVariable():
Expand Down
2 changes: 1 addition & 1 deletion src/Dax.Vpax.Obfuscator/Extensions/DaxTokenExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static bool IsFunction(this DaxToken token)
return current != null && current.Type == DaxToken.OPEN_PARENS;
}

public static bool IsReservedExtensionColumn(this DaxToken token)
public static bool IsReservedTokenName(this DaxToken token)
{
Debug.Assert(token.Type == DaxToken.COLUMN_OR_MEASURE);

Expand Down

0 comments on commit 77bdf72

Please sign in to comment.