perks/codegen-csharp/struct.ts

16 строки
679 B
TypeScript
Исходник Постоянная ссылка Обычный вид История

2018-11-06 22:03:52 +03:00
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Class } from './class';
import { Namespace } from './namespace';
export class Struct extends Class {
constructor(namespace: Namespace, name: string, public parent?: Struct, objectIntializer?: Partial<Struct>) {
super(namespace, name);
this.apply(objectIntializer);
2019-08-28 22:09:53 +03:00
this.classOrStruct = 'struct';
2018-11-06 22:03:52 +03:00
}
}