type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
/** * Creates a key pair for the specified service account. */ create(request: CreateKeyRequest): Promise<CreateKeyResponse>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Deletes the specified key pair. */ delete(request: DeleteKeyRequest): Promise<protobuf.Empty>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Returns the specified Role resource. * * To get the list of available Role resources, use a [List] request. */ get(request: GetRoleRequest): Promise<Role>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Retrieves the list of Role resources. */ list(request: ListRolesRequest): Promise<ListRolesResponse>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Returns the specified ServiceAccount resource. * * To get the list of available ServiceAccount resources, use a [List] request. */ get(request: GetServiceAccountRequest): Promise<ServiceAccount>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Retrieves the list of ServiceAccount resources in the specified folder. */ list(request: ListServiceAccountsRequest): Promise<ListServiceAccountsResponse>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Creates a service account in the specified folder. */ create(request: CreateServiceAccountRequest): Promise<operation.Operation>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Updates the specified service account. */ update(request: UpdateServiceAccountRequest): Promise<operation.Operation>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Deletes the specified service account. */ delete(request: DeleteServiceAccountRequest): Promise<operation.Operation>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Lists access bindings for the specified service account. */ listAccessBindings(request: access.ListAccessBindingsRequest): Promise<access.ListAccessBindingsResponse>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Sets access bindings for the service account. */ setAccessBindings(request: access.SetAccessBindingsRequest): Promise<operation.Operation>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Updates access bindings for the specified service account. */ updateAccessBindings(request: access.UpdateAccessBindingsRequest): Promise<operation.Operation>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Lists operations for the specified service account. */ listOperations(request: ListServiceAccountOperationsRequest): Promise<ListServiceAccountOperationsResponse>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Returns the specified UserAccount resource. */ get(request: GetUserAccountRequest): Promise<UserAccount>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Returns the specified YandexPassportUserAccount resource. */ getByLogin(request: GetUserAccountByLoginRequest): Promise<UserAccount>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
ClassDeclaration
export class ContratistaModel { id: number; user_id:number; plan_id:number; descripcion:string; ultima_ubicacion:string; }
darwinj94506/appReparacion
src/app/models/contratista.model.ts
TypeScript
ArrowFunction
(theme: any, id: string) => { return { application: (null as unknown) as PIXI.Application, viewport: (null as unknown) as Viewport, viewportChildContainer: (null as unknown) as PIXI.Container, childrenMap: new Map<string, PIXI.DisplayObject>(), children: [] as PIXI.DisplayObject[], loader: PI...
rhocode/Giraffe
src/v3/apps/GraphV3/libraries/SatisGraphtoryLib/stores/PixiJSStore.ts
TypeScript
ArrowFunction
(canvasId: string) => { pixiJsStore.update(triggerCanvasUpdateFunction(canvasId)); }
rhocode/Giraffe
src/v3/apps/GraphV3/libraries/SatisGraphtoryLib/stores/PixiJSStore.ts
TypeScript
ArrowFunction
(canvasId: string) => (t: any) => { const s = t[canvasId]; s.triggerUpdate = s.triggerUpdate + 1; // We limit the number of updates to 100 s.triggerUpdate = s.triggerUpdate % 100; }
rhocode/Giraffe
src/v3/apps/GraphV3/libraries/SatisGraphtoryLib/stores/PixiJSStore.ts
TypeScript
ArrowFunction
(t: any) => { const s = t[canvasId]; s.triggerUpdate = s.triggerUpdate + 1; // We limit the number of updates to 100 s.triggerUpdate = s.triggerUpdate % 100; }
rhocode/Giraffe
src/v3/apps/GraphV3/libraries/SatisGraphtoryLib/stores/PixiJSStore.ts
TypeScript
ArrowFunction
( pixiCanvasStateId: string, initialCanvasChildren: any, translate: any ) => { pixiJsStore.update((sParent) => { let s = sParent[pixiCanvasStateId]; const childrenToPush = initCanvasChildren( s.application, s.viewport, translate, s.externalInteractionManager, initialCanva...
rhocode/Giraffe
src/v3/apps/GraphV3/libraries/SatisGraphtoryLib/stores/PixiJSStore.ts
TypeScript
ArrowFunction
(sParent) => { let s = sParent[pixiCanvasStateId]; const childrenToPush = initCanvasChildren( s.application, s.viewport, translate, s.externalInteractionManager, initialCanvasChildren ); removeChildrenFunction(pixiCanvasStateId)(sParent); addObjectChildrenWithinState...
rhocode/Giraffe
src/v3/apps/GraphV3/libraries/SatisGraphtoryLib/stores/PixiJSStore.ts
TypeScript
ArrowFunction
( pixiCanvasStateId: string, theme: any, height: number, width: number, canvasRef: any, initialCanvasGraph: any, translate: (str: string) => string, onFinishLoad: any ) => { pixiJsStore.update((sParent) => { let s = sParent[pixiCanvasStateId]; if (!s) { sParent[pixiCanvasStateId] = gene...
rhocode/Giraffe
src/v3/apps/GraphV3/libraries/SatisGraphtoryLib/stores/PixiJSStore.ts
TypeScript
ArrowFunction
(sParent) => { let s = sParent[pixiCanvasStateId]; if (!s) { sParent[pixiCanvasStateId] = generateNewPixiCanvasStore( theme, pixiCanvasStateId ); s = sParent[pixiCanvasStateId]; } let newApplication = new PIXI.Application({ transparent: true, autoDensity: ...
rhocode/Giraffe
src/v3/apps/GraphV3/libraries/SatisGraphtoryLib/stores/PixiJSStore.ts
TypeScript
InterfaceDeclaration
interface LooseObject { [key: string]: any; }
rhocode/Giraffe
src/v3/apps/GraphV3/libraries/SatisGraphtoryLib/stores/PixiJSStore.ts
TypeScript
ClassDeclaration
export declare class EventListener { private rpc; private logDecoder; constructor(rpc: QtumRPC, logDecoder: ContractLogDecoder); /** * Get contract event logs. Long-poll wait if no log is found. Returns a cancel * function that stops the events subscription. * * @param req (optional...
shekoocoder/telepathy
TelePathy-Dashboard.0/node_modules/qtumjs/lib/EventListener.d.ts
TypeScript
InterfaceDeclaration
export interface ICancellableEventEmitter extends EventEmitter { cancel: ICancelFunction; }
shekoocoder/telepathy
TelePathy-Dashboard.0/node_modules/qtumjs/lib/EventListener.d.ts
TypeScript
TypeAliasDeclaration
export declare type ICancelFunction = () => void;
shekoocoder/telepathy
TelePathy-Dashboard.0/node_modules/qtumjs/lib/EventListener.d.ts
TypeScript
MethodDeclaration
/** * Get contract event logs. Long-poll wait if no log is found. Returns a cancel * function that stops the events subscription. * * @param req (optional) IRPCWaitForLogsRequest */ waitLogs(req?: IRPCWaitForLogsRequest): IPromiseCancel<IContractEventLogs>;
shekoocoder/telepathy
TelePathy-Dashboard.0/node_modules/qtumjs/lib/EventListener.d.ts
TypeScript
MethodDeclaration
/** * Subscribe to contract's events, using callback interface. */ onLog(fn: (entry: IContractEventLog) => void, opts?: IRPCWaitForLogsRequest): ICancelFunction;
shekoocoder/telepathy
TelePathy-Dashboard.0/node_modules/qtumjs/lib/EventListener.d.ts
TypeScript
MethodDeclaration
/** * Subscribe to contract's events, use EventsEmitter interface. */ emitter(opts?: IRPCWaitForLogsRequest): ICancellableEventEmitter;
shekoocoder/telepathy
TelePathy-Dashboard.0/node_modules/qtumjs/lib/EventListener.d.ts
TypeScript
ArrowFunction
({ className, collapsed, comment, disableReplies, hideAnsweredTag, hideModerationCarat, highlight, indentLevel, localReply, onRemoveAnswered, settings, showConversationLink, hideReportButton, story, toggleCollapsed, eventEmitter, setCommentID, viewer, showAuthPopup, }) => { cons...
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
(e: MouseEvent) => { ViewConversationEvent.emit(eventEmitter, { commentID: comment.id, from: "COMMENT_STREAM", }); // If the feature for read more new tab is enabled, then redirect the // user. // If the feature flag for opening this in a new tab is enabled, then we ...
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
() => { if (isLoggedIn) { ShowEditFormEvent.emit(eventEmitter, { commentID: comment.id, }); setShowEditDialog(true); } else { void showAuthPopup({ view: "SIGN_IN" }); } }
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
() => { if (isLoggedIn) { if (!showReplyDialog) { ShowReplyFormEvent.emit(eventEmitter, { commentID: comment.id, }); } setShowReplyDialog((v) => !v); } else { void showAuthPopup({ view: "SIGN_IN" }); } }
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
() => { // Can't edit a comment that the viewer didn't write! If the user is banned // or suspended too they can't edit. if ( !isViewerComment || isViewerBanned || isViewerSuspended || isViewerWarned ) { return false; } // Can't edit a comment if the editable date...
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
() => { // If the comment is not editable now, it can't be editable in the future, // so exit! if (!editable) { return; } // The comment is editable, we should register a callback to remove that // status when it is no longer editable. We know that the `editableUntil` is // available...
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
() => { // Mark the comment as not editable. setEditable(false); }
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
() => { // When this component is disposed, also clear the timeout. clearLongTimeout(timeout); }
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
(t) => t.code === GQLTAG.FEATURED
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
(t) => t.code === GQLTAG.EXPERT
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
(t) => t.code !== GQLTAG.UNANSWERED
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
ArrowFunction
({ eventEmitter }) => ({ eventEmitter })
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
InterfaceDeclaration
interface Props { viewer: ViewerData | null; comment: CommentData; story: StoryData; settings: SettingsData; eventEmitter: EventEmitter2; indentLevel?: number; showAuthPopup: ShowAuthPopupMutation; setCommentID: SetCommentIDMutation; /** * localReply will integrate the mutation response into * ...
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
TypeAliasDeclaration
export type CommentContainerProps = PropTypesOf<typeof enhanced>;
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
MethodDeclaration
cn( CLASSES
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
MethodDeclaration
cn( CLASSES
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
MethodDeclaration
cn( styles
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
MethodDeclaration
cn( styles
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
MethodDeclaration
getURLWithCommentID(story
cristiandean/talk
src/core/client/stream/tabs/Comments/Comment/CommentContainer.tsx
TypeScript
FunctionDeclaration
export default function InputText(props: InputTextProps) { const { name, onBlur, onChange, value = '', extraProps = {}, className = '' } = props; const { autoComplete = 'off', disabled, password, placeholder } = extraProps; const rootClassName = classNames('input', { [className]: !!className ...
carlesfelix/2mixxx
frontend/src/components/forms/inputs/InputText/InputText.tsx
TypeScript
FunctionDeclaration
function changeHandler(event: ChangeEvent<HTMLInputElement>): void { onChange(event.currentTarget.value); }
carlesfelix/2mixxx
frontend/src/components/forms/inputs/InputText/InputText.tsx
TypeScript
TypeAliasDeclaration
export type InputTextExtraProps = { autoComplete?: 'on' | 'off'; disabled?: boolean; password?: boolean; placeholder?: string; }
carlesfelix/2mixxx
frontend/src/components/forms/inputs/InputText/InputText.tsx
TypeScript
TypeAliasDeclaration
export type InputTextProps = ControlledInputProps<string, InputTextExtraProps | undefined>;
carlesfelix/2mixxx
frontend/src/components/forms/inputs/InputText/InputText.tsx
TypeScript
ClassDeclaration
@Component({ tag: 'sc-product-card', styleUrl: 'sc-product-card.css', shadow: true, }) export class ScProductCard { @Element() el: HTMLElement; @Prop() price: string; @Prop() productTitle: string; @Prop() url: string; render() { return ( <Host> <a href={this.url}> <div cla...
strawberry/strawberry-components
src/components/sc-product-card/sc-product-card.tsx
TypeScript
MethodDeclaration
render() { return ( <Host> <a href={this.url}> <div class="container"> <slot name="image"></slot> <h2>{this.productTitle}</h2> <span>{this.price}</span> </div> </a> </Host> ); }
strawberry/strawberry-components
src/components/sc-product-card/sc-product-card.tsx
TypeScript
ArrowFunction
({ id, place_name, address_name, road_address_name, x, y, }: Place) => { return { id, name: place_name, address: address_name, roadAddress: road_address_name, coordinates: { latitude: +y, longitude: +x, }, }; }
altenull/mask-finder
src/app/src/search/utils/search.util.ts
TypeScript
ArrowFunction
orphanage => this.render(orphanage)
Kedinha/hAPPy-NLW3
backend/src/views/orphanages_view.ts
TypeScript
MethodDeclaration
render(orphanage: Orphanage){ return { id: orphanage.id, name: orphanage.name, latitude:orphanage.latitude, longitude: orphanage.longitude, about: orphanage.about, instructions: orphanage.instructions, opening_hours: orphanage....
Kedinha/hAPPy-NLW3
backend/src/views/orphanages_view.ts
TypeScript
MethodDeclaration
renderMany(orphanages: Orphanage[]) { return orphanages.map(orphanage => this.render(orphanage)); }
Kedinha/hAPPy-NLW3
backend/src/views/orphanages_view.ts
TypeScript
InterfaceDeclaration
export interface Installer { /** * Install a package on the disk. * * Should return `null` if the package has no install steps, or an object * describing the various scripts that need to be run otherwise. * * Note that this function isn't called in any specific order. In particular, * this means...
22a/berry
packages/yarnpkg-core/sources/Installer.ts
TypeScript
EnumDeclaration
export enum BuildType { SCRIPT = 0, SHELLCODE = 1, }
22a/berry
packages/yarnpkg-core/sources/Installer.ts
TypeScript
TypeAliasDeclaration
export type BuildDirective = [BuildType, string];
22a/berry
packages/yarnpkg-core/sources/Installer.ts
TypeScript
TypeAliasDeclaration
export type InstallStatus = { packageLocation: PortablePath, buildDirective: Array<BuildDirective> | null, };
22a/berry
packages/yarnpkg-core/sources/Installer.ts
TypeScript
TypeAliasDeclaration
export type FinalizeInstallStatus = { locatorHash: LocatorHash, buildLocations: Array<PortablePath>, buildDirective: Array<BuildDirective>, };
22a/berry
packages/yarnpkg-core/sources/Installer.ts
TypeScript
ArrowFunction
(users) => { this.users = users; }
AlessioGr/Hangar
frontend/components/mixins/users.ts
TypeScript
ArrowFunction
() => { this.loading = false; }
AlessioGr/Hangar
frontend/components/mixins/users.ts
TypeScript
ClassDeclaration
@Component export class UserPage extends HangarComponent { user!: User; organization!: Organization | null; get isCurrentUser() { return this.currentUser && this.currentUser.name === this.user.name; } }
AlessioGr/Hangar
frontend/components/mixins/users.ts
TypeScript
ClassDeclaration
@Component export class UserPropPage extends UserPage { @Prop({ type: Object as PropType<User>, required: true }) user!: User; @Prop({ type: Object as PropType<Organization> }) organization!: Organization | null; }
AlessioGr/Hangar
frontend/components/mixins/users.ts
TypeScript
ClassDeclaration
@Component export class UserListPage extends HangarComponent { loading = false; options = { page: 1, itemsPerPage: 25 } as DataOptions; users!: PaginatedResult<User>; mounted() { this.$watch('options', this.onOptionsChanged, { deep: true }); } get url(): string { throw new Err...
AlessioGr/Hangar
frontend/components/mixins/users.ts
TypeScript
MethodDeclaration
mounted() { this.$watch('options', this.onOptionsChanged, { deep: true }); }
AlessioGr/Hangar
frontend/components/mixins/users.ts
TypeScript
MethodDeclaration
onOptionsChanged() { this.loading = true; this.$api .request<PaginatedResult<User>>(this.url, false, 'get', this.requestOptions) .then((users) => { this.users = users; }) .catch(this.$util.handleRequestError) .finally(() => { ...
AlessioGr/Hangar
frontend/components/mixins/users.ts
TypeScript
FunctionDeclaration
export function structify() { return through2.obj(function (file: File, encoding, callback) { let info = tsTypeInfo.getInfoFromFiles([file.path], { includeTsNodes: true }); let srcFile = info.getFile(f => f.fileName.indexOf(file.relative) !== -1 ) if (srcFile) { ...
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
FunctionDeclaration
function generateMethodsFromFunctions(cls: tsTypeInfo.ClassDefinition, functions: tsTypeInfo.FunctionDefinition[]) { functions.forEach(f => { let params = f.parameters.slice(1); cls.addMethod({ name: f.name, parameters: normalizeFunctionParams(params), ...
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
FunctionDeclaration
function generateCreatersFromSetters(cls: tsTypeInfo.ClassDefinition) { cls.methods .filter(m => m.name.indexOf("set") === 0 && m.name.charAt(3) !== " ") .forEach(setter => { let args = setter.parameters.map(p => p.name); let name = setter.name.substring(...
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
FunctionDeclaration
// Helper functions: function normalizeMethodParams(params: tsTypeInfo.ClassMethodParameterDefinition[]) { return params.map(p => { return { name: p.name, type: p.type.node ? p.type.node.text : p.type.text, isOptional: p.isOptional, isRestParameter: p.isRestP...
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
FunctionDeclaration
function normalizeFunctionParams(params: tsTypeInfo.FunctionParameterDefinition[]) { return params.map(p => { return { name: p.name, type: p.type.node ? p.type.node.text : p.type.text, isOptional: p.isOptional, isRestParameter: p.isRestParameter, ...
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
FunctionDeclaration
function decapitalize(str: String) { return str.charAt(0).toLowerCase() + str.slice(1); }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
f => f.fileName.indexOf(file.relative) !== -1
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
imprt => imprt.moduleSpecifier.indexOf('structify/template') !== -1
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
cls => cls.extendsTypes.some(ext => ext.text.indexOf("Template<") === 0)
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
ext => ext.text.indexOf("Template<") === 0
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
imprt => imprt !== templateImport
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
cls => cls !== templateSubclass
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
p => { return { name: p.name, type: p.type.text }; }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { writer.write("// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n") }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
p => { return { name: p.name, type: p.type.text, documentationComment: p.documentationComment, } }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { writer.write(`export { ${struct} as _};`) }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
f => { if (f.tsNode) { let node = f.tsNode as ts.FunctionDeclaration; f.onWriteFunctionBody = writer => { for (let s of node.body.statements) { writer.newLine().write(s.getText()); } } } }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { for (let s of node.body.statements) { writer.newLine().write(s.getText()); } }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { writer.newLine().write(`super(new ${arrayType}(${structLength}));`); }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
(p, i) => { structClass.addMethod({ name: "get " + p.name, documentationComment: p.documentationComment, onWriteFunctionBody: writer => { writer.write(`return this.data[${i}];`); } }) structClass.addMethod({ name: "set ...
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { writer.write(`return this.data[${i}];`); }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { writer.write(`this.data[${i}] = value;`); }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
(p, i) => { let comment = p.documentationComment.replace(`this ${struct}`, `the current ${struct}`) bufClass.addMethod({ name: "get " + p.name, documentationComment: comment, onWriteFunctionBody: writer => { writer.write(`return this.data[this.dataPos...
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { writer.write(`return this.data[this.dataPosition + ${i}];`); }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { writer.write(`this.data[this.dataPosition + ${i}] = value;`); }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { writer.write(`return ${structLength};`); }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { writer.newLine().write(`let dataPos = position * this.structLength();`) for (let c of components) { writer.newLine().write(`this.data[dataPos++] = ${c.name};`) } }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript
ArrowFunction
writer => { for (let c of components) { writer.newLine().write(`this.data[this.dataPosition++] = ${c.name};`) } }
wjheesen/hexel-art
src/graphics/structify/structify.ts
TypeScript