import { GenOptionsInterface , GenOptions } from "./GenerateOptions" ; import { DiagnosticsInterface , Diagnostics } from "./Diagnostics" ; export interface ContextInterface { offset : number ; indent : number ; emitImplementation : boolean ; genOptions : GenOptionsInterface ; diagnostics : DiagnosticsInterface ; } export class Context implements ContextInterface { offset : number = 0 ; indent : number = 0 ; emitImplementation : boolean = false ; genOptions : GenOptionsInterface ; diagnostics : DiagnosticsInterface ; constructor ( options ? ) { if ( options ) this . genOptions = options ; else this . genOptions = new GenOptions ( ) ; this . diagnostics = new Diagnostics ( ) ; } }