protected static function getFuncName(&$context, $name, $tag) {
        static::addUsageCount($context, 'runtime', $name);

        if ($context['flags']['debug'] && ($name != 'miss')) {
            $dbg = "'$tag', '$name', ";
            $name = 'debug';
            static::addUsageCount($context, 'runtime', 'debug');
        } else {
            $dbg = '';
        }

        return $context['flags']['standalone'] ? "{$context['funcprefix']}$name($dbg" : "{$context['runtimealias']}::$name($dbg";
    }
protected static function getFuncName(&$context, $name, $tag) {
        static::addUsageCount($context, 'runtime', $name);

        if ($context['flags']['debug'] && ($name != 'miss')) {
            $dbg = "'$tag', '$name', ";
            $name = 'debug';
            static::addUsageCount($context, 'runtime', 'debug');
        } else {
            $dbg = '';
        }

        return $context['flags']['standalone'] ? "{$context['funcprefix']}$name($dbg" : "{$context['runtimealias']}::$name($dbg";
    }
protected static function getFuncName ( & $ context , $ name , $ tag ) { static :: addUsageCount ( $ context , 'runtime' , $ name ) ; if ( $ context [ 'flags' ] [ 'debug' ] && ( $ name != 'miss' ) ) { $ dbg = "'$tag', '$name', " ; $ name = 'debug' ; static :: addUsageCount ( $ context , 'runtime' , 'debug' ) ; } else { $ dbg = '' ; } return $ context [ 'flags' ] [ 'standalone' ] ? "{$context['funcprefix']}$name($dbg" : "{$context['runtimealias']}::$name($dbg" ; }
Get function name for standalone or none standalone template.

@param array<string,array|string|integer> $context Current context of compiler progress.
@param string $name base function name
@param string $tag original handlabars tag for debug

@return string compiled Function name

@expect 'LR::test(' when input array('flags' => array('standalone' => 0, 'debug' => 0), 'runtime' => 'Runtime', 'runtimealias' => 'LR'), 'test', ''
@expect 'LL::test2(' when input array('flags' => array('standalone' => 0, 'debug' => 0), 'runtime' => 'Runtime', 'runtimealias' => 'LL'), 'test2', ''
@expect "lala_abctest3(" when input array('flags' => array('standalone' => 1, 'debug' => 0), 'runtime' => 'Runtime', 'runtimealias' => 0, 'funcprefix' => 'lala_abc'), 'test3', ''
@expect 'RR::debug(\'abc\', \'test\', ' when input array('flags' => array('standalone' => 0, 'debug' => 1), 'runtime' => 'Runtime', 'runtimealias' => 'RR', 'funcprefix' => 'haha456'), 'test', 'abc'
Get function name for standalone or none standalone template .