functionArguments static method
既存の関数呼び出しの引数を取得し、認可などの設定を保持する。
Implementation
static String? functionArguments(String source, String functionName) {
final start = source.indexOf("$functionName(");
if (start < 0) {
return null;
}
final open = start + functionName.length;
final close = _findClosing(source, open, "(", ")");
if (close < 0) {
throw const FormatException("Workerの関数呼び出しを解析できません。");
}
return source.substring(open + 1, close).trim();
}