Skip to content

Commit 83a4311

Browse files
authored
babel. -> t. (#2362)
1 parent 8cf6c0d commit 83a4311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/unplugin-typegpu/src/core/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ const resourceConstructors: string[] = [
314314
* Since it is mostly for debugging and clean WGSL generation,
315315
* some false positives and false negatives are admissible.
316316
*/
317-
function containsResourceConstructorCall(node: babel.Node, state: PluginState) {
317+
function containsResourceConstructorCall(node: t.Node, state: PluginState) {
318318
if (node.type === 'CallExpression') {
319319
if (isShellImplementationCall(node, state)) {
320320
return true;
@@ -353,7 +353,7 @@ function containsResourceConstructorCall(node: babel.Node, state: PluginState) {
353353
* tryFindIdentifier('this.myBuffer'); // 'myBuffer'
354354
* tryFindIdentifier('[a, b]'); // undefined
355355
*/
356-
function tryFindIdentifier(node: babel.Node): string | undefined {
356+
function tryFindIdentifier(node: t.Node): string | undefined {
357357
if (node.type === 'Identifier') {
358358
return node.name;
359359
}

0 commit comments

Comments
 (0)