import { CommandResult } from "./Commands/CommandResult" ; import { Import } from "./Languages/Imports/Import" ; /**
 * A cluster of code converted from a line of Budgie syntax.
 */ export class LineResults { param text param indentation returns public static newBlockLine ( text , indentation ) { return new LineResults ( [ new CommandResult ( text , indentation ) ] ) ; } param text returns public static newSingleLine ( text ) { return new LineResults ( [ new CommandResult ( text , 0 ) ] ) ; } /**
     * Any imports that must be in a file to use this.
     */ public addedImports : Import [ ] ; /**
     * Whether this should have a semicolon appended.
     */ public addSemicolon : boolean ; /**
     * Text contents of the result.
     */ public commandResults : CommandResult [ ] ; param commandResults param addsSemicolon public constructor ( commandResults ) { this . commandResults = commandResults ; this . addSemicolon = false ; this . addedImports = [ ] ; } param addSemicolon returns public withAddSemicolon ( addSemicolon ) { this . addSemicolon = addSemicolon ; return this ; } param imports returns public withImports ( imports ) { this . addedImports . push ( ... imports ) ; return this ; } }