gcc-rest.js
function(json) {
        if (json.serverErrors) {
            this._handleNoCompiledCode(json.serverErrors);
        } else {
            json.compiledCode = this._header + json.compiledCode;

            if (this.file) {
                this._writeOutputTofile(json.compiledCode);
            }

            if (this.callback) {
                this.callback((this._passJson) ? json : json.compiledCode);
            }

            if (!this.file && !this.callback) {
                this.console.info('Code:', json.compiledCode);
            }
        }
    }
function(json) {
        if (json.serverErrors) {
            this._handleNoCompiledCode(json.serverErrors);
        } else {
            json.compiledCode = this._header + json.compiledCode;

            if (this.file) {
                this._writeOutputTofile(json.compiledCode);
            }

            if (this.callback) {
                this.callback((this._passJson) ? json : json.compiledCode);
            }

            if (!this.file && !this.callback) {
                this.console.info('Code:', json.compiledCode);
            }
        }
    }
function ( json ) { if ( json . serverErrors ) { this . _handleNoCompiledCode ( json . serverErrors ) ; } else { json . compiledCode = this . _header + json . compiledCode ; if ( this . file ) { this . _writeOutputTofile ( json . compiledCode ) ; } if ( this . callback ) { this . callback ( ( this . _passJson ) ? json : json . compiledCode ) ; } if ( ! this . file && ! this . callback ) { this . console . info ( 'Code:' , json . compiledCode ) ; } } }
Handle output JSON object
@param {Object} json
@private
Handle output JSON object