mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 10:27:22 +00:00
style: 💄 lint fix
This commit is contained in:
parent
82feb9952a
commit
17dbb898e8
@ -7,7 +7,7 @@ import { isIdentifier, Node } from '@babel/types';
|
|||||||
import { OrderedSet } from './OrderedSet';
|
import { OrderedSet } from './OrderedSet';
|
||||||
|
|
||||||
export class ParseError extends Error {
|
export class ParseError extends Error {
|
||||||
constructor(public readonly expr: string, public readonly detail: unknown) {
|
constructor(readonly expr: string, readonly detail: unknown) {
|
||||||
super(`Failed to parse expression "${expr}"`);
|
super(`Failed to parse expression "${expr}"`);
|
||||||
Object.setPrototypeOf(this, new.target.prototype);
|
Object.setPrototypeOf(this, new.target.prototype);
|
||||||
}
|
}
|
||||||
@ -160,7 +160,7 @@ export function parseExpressionGetGlobalVariables(
|
|||||||
|
|
||||||
export function parseExpressionConvertThis2Context(
|
export function parseExpressionConvertThis2Context(
|
||||||
expr: string,
|
expr: string,
|
||||||
contextName: string = '__$$context',
|
contextName = '__$$context',
|
||||||
localVariables: string[] = [],
|
localVariables: string[] = [],
|
||||||
): string {
|
): string {
|
||||||
if (!expr) {
|
if (!expr) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user