import * as vscode from "vscode" ; import { TelemetryContext } from "../../telemetry" ; import { AnsiCCodeGenerator } from "./Interfaces/AnsiCCodeGenerator" ; import { CodeGenerator , CodeGenLanguage } from "./Interfaces/CodeGenerator" ; import { CodeGeneratorFactory } from "./Interfaces/CodeGeneratorFactory" ; export class AnsiCCodeGeneratorFactory implements CodeGeneratorFactory { constructor ( private context , private channel , private telemetryContext ) { } createCodeGeneratorImpl ( language ) { if ( language === CodeGenLanguage . ANSIC . toString ( ) ) { return new AnsiCCodeGenerator ( this . context , this . channel , this . telemetryContext ) ; } else { return null ; } } }