You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
560 B
18 lines
560 B
"use strict"; |
|
Object.defineProperty(exports, "__esModule", { value: true }); |
|
exports.rewriteSelfKey = exports.isSelfKey = void 0; |
|
function isSelfKey({ arg, exp }, vFor) { |
|
return (vFor && |
|
arg && |
|
exp && |
|
arg.type === 4 /* NodeTypes.SIMPLE_EXPRESSION */ && |
|
arg.content === 'key' && |
|
exp.type === 4 /* NodeTypes.SIMPLE_EXPRESSION */ && |
|
exp.content === vFor.valueAlias); |
|
} |
|
exports.isSelfKey = isSelfKey; |
|
function rewriteSelfKey(dir) { |
|
; |
|
dir.exp.content = '*this'; |
|
} |
|
exports.rewriteSelfKey = rewriteSelfKey;
|
|
|