import { NativeCallType } from "../../Languages/Properties/Syntax/NativeCallSyntax" ; import { LineResults } from "../../LineResults" ; import { NativeCallRenderer } from "./NativeCallRenderer" ; /**
 * Renders a native operator call.
 */ export class NativeOperatorRenderer extends NativeCallRenderer { param parameters returns public render ( parameters ) { let output = "" ; if ( this . nativeCallSyntax . type === NativeCallType . FloatingLeft ) { output += parameters [ 2 ] ; output += this . nativeCallSyntax . name ; output += parameters [ 1 ] ; } else { output += parameters [ 1 ] ; output += this . nativeCallSyntax . name ; output += parameters [ 2 ] ; if ( parameters . length === 4 ) { output += parameters [ 3 ] ; } } return LineResults . newSingleLine ( output ) . withAddSemicolon ( true ) ; } }