Skip to content

Commit

Permalink
CodeStyle Johannes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Thurner committed Aug 7, 2024
1 parent 2960f24 commit 03725c8
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,10 @@ export class Postprocessor {
let resultType = ParsingResultType.EVALUATE_MEMBER_EXPRESSION_FAILURE;
simpleTraverse(classBody, {
enter(node) {
if (node.type === 'PropertyDefinition' && node.value?.type === 'Literal' && node.key.type === 'Identifier' && node.value.value) {
if (node.key.name === name) {
memberExpressionResult.push(node.value.value.toString());
resultType = ParsingResultType.EVALUATE_MEMBER_EXPRESSION_SUCCESS;
return;
}
if (node.type === 'PropertyDefinition' && node.value?.type === 'Literal' && node.key.type === 'Identifier' && node.value.value && node.key.name === name) {
memberExpressionResult.push(node.value.value.toString());
resultType = ParsingResultType.EVALUATE_MEMBER_EXPRESSION_SUCCESS;
return;
}
}
});
Expand Down

0 comments on commit 03725c8

Please sign in to comment.