Skip to content

Commit

Permalink
fix: correct inappropriate variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
yilun.sun committed Mar 8, 2024
1 parent 30a08d5 commit 6847e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/phpdoc-parser/transpiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const commentText = `/**
*/`;

// Parse the PHPDoc comment text to get node structures.
const transpiledCommentNodes = getPropertyTagValueNodesFromComment(commentText);
const propertyTagValueNodes = getPropertyTagValueNodesFromComment(commentText);

// Define a resolver function for path resolving in the transpiler.
const nameNodePathResolver: NameNodePathResolver<ExtendedTranspiler> =
Expand All @@ -90,7 +90,7 @@ const nameNodePathResolver: NameNodePathResolver<ExtendedTranspiler> =
};

// Map through the nodes, transpile each, and render to TypeScript type strings.
transpiledCommentNodes.map((node) => {
propertyTagValueNodes.map((node) => {
const transpiler = new ExtendedTranspiler(nameNodePathResolver);
transpiler.customProperty = 'this is a custom property'; // Set your configurations
transpiler.beforeTranspile(); // Initialize transpilation state(reset the state of importDeclarations)
Expand Down

0 comments on commit 6847e77

Please sign in to comment.