import { LineResults } from "../../LineResults" ; import { NativeCallRenderer } from "./NativeCallRenderer" ; /**
 * Renders a native static call.
 */ export class NativeStaticRenderer extends NativeCallRenderer { param parameters returns public render ( parameters ) { let output = "" ; output += this . nativeCallSyntax . name ; output += "(" + parameters [ 1 ] ; for ( const arg of this . nativeCallSyntax . arguments ) { output += this . nativeCallSyntax . separator + this . formatArgument ( arg , parameters [ 1 ] ) ; } for ( let i = 2 ; i < parameters . length ; i += 1 ) { output += this . nativeCallSyntax . separator + parameters [ i ] ; } output += ")" ; return LineResults . newSingleLine ( output ) . withAddSemicolon ( true ) ; } }