Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
uittorio committed Dec 25, 2023
1 parent a359e72 commit 79b3648
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/transformer/descriptor/identifier/identifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export function GetIdentifierDescriptor(
scope: Scope
): ts.Expression {
if (
core.ts.identifierToKeywordKind(node) === core.ts.SyntaxKind?.UndefinedKeyword
core.ts.identifierToKeywordKind(node) ===
core.ts.SyntaxKind?.UndefinedKeyword
) {
return GetUndefinedDescriptor();
}
Expand Down
8 changes: 6 additions & 2 deletions src/transformer/descriptor/typeQuery/enumTypeQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ import {
createBlock,
createReturn,
} from '../../../typescriptFactory/typescriptFactory';
import { core } from "../../core/core";
import { core } from '../../core/core';
export function GetTypeofEnumDescriptor(
enumDeclaration: ts.EnumDeclaration
): ts.Expression {
const declaration = core.ts.factory.createEnumDeclaration(undefined, enumDeclaration.name, enumDeclaration.members);
const declaration = core.ts.factory.createEnumDeclaration(
undefined,
enumDeclaration.name,
enumDeclaration.members
);
return createArrowFunction(
createBlock([declaration, createReturn(enumDeclaration.name)], true)
);
Expand Down
22 changes: 13 additions & 9 deletions src/transformer/mockFactoryCall/mockFactoryCall.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import type * as ts from 'typescript';
import {TypescriptHelper} from '../descriptor/helper/helper';
import {GenericDeclaration} from '../genericDeclaration/genericDeclaration';
import {IGenericDeclaration} from '../genericDeclaration/genericDeclaration.interface';
import { TypescriptHelper } from '../descriptor/helper/helper';
import { GenericDeclaration } from '../genericDeclaration/genericDeclaration';
import { IGenericDeclaration } from '../genericDeclaration/genericDeclaration.interface';
import {
extensionExpressionSupported,
GenericDeclarationSupported,
} from '../genericDeclaration/genericDeclarationSupported';
import {MockDefiner} from '../mockDefiner/mockDefiner';
import {Identifiers} from '../mockIdentifier/mockIdentifier';
import {Scope} from '../scope/scope';
import {createArrayLiteral, createCall,} from '../../typescriptFactory/typescriptFactory';
import {core} from '../core/core';
import { MockDefiner } from '../mockDefiner/mockDefiner';
import { Identifiers } from '../mockIdentifier/mockIdentifier';
import { Scope } from '../scope/scope';
import {
createArrayLiteral,
createCall,
} from '../../typescriptFactory/typescriptFactory';
import { core } from '../core/core';

export function GetMockFactoryCall(
typeReferenceNode: ts.TypeReferenceNode,
Expand Down Expand Up @@ -79,7 +82,8 @@ export function GetMockFactoryCallTypeofEnum(
declaration: ts.EnumDeclaration,
scope: Scope
): ts.Expression {
const mockFactoryCall: ts.Expression = MockDefiner.instance.getMockFactoryTypeofEnum(declaration, scope);
const mockFactoryCall: ts.Expression =
MockDefiner.instance.getMockFactoryTypeofEnum(declaration, scope);
return createCall(mockFactoryCall, []);
}

Expand Down

0 comments on commit 79b3648

Please sign in to comment.