NaifyView\Compiler\CompiledExpressionCallFastPathBuilder クラス
CompiledExpressionCallFastPathBuilder — compiled mainline の Compiled Expression Call Fast Path Builder
template を generated PHP class へ落とす compile pipeline の一部。 大きな compiler へ責務を押し込まず、source 生成・依存計画・fast path などを小さく分ける。
使用例
// Engine が warm-hit できない template を compiled artifact へ変換する時に使う。
// 通常は View / Engine 経由で呼ばれ、アプリ側から直接操作しない。
プロパティ
| 名前 | 型 | 説明 |
|---|---|---|
private
$unwrapOuterParentheses
|
Closure |
string |
private
$findMatchingParenthesis
|
Closure |
?int |
private
$resolveTargetExpression
|
Closure |
?string |
private
$buildCallArguments
|
Closure |
?string |
メソッド
| メソッド | 説明 |
|---|---|
public
__construct(Closure $unwrapOuterParentheses, Closure $findMatchingParenthesis, Closure $resolveTargetExpression, Closure $buildCallArguments): void
|
インスタンスを初期化する |
public
resolveCallExpression(string $expression, string $scopeVar): ?string
|
`resolveCallExpression()` を実行する |
public
describeTopLevelCallableCall(string $expression): ?array
|
`describeTopLevelCallableCall()` を実行する |
public
describeTrustedMethodCall(string $expression): ?array
|
`describeTrustedMethodCall()` を実行する |