From 18e8ff60d5a10089dbeda4b62f186316069d6f87 Mon Sep 17 00:00:00 2001 From: Alma Thaler Date: Tue, 19 Jul 2022 10:55:23 -0700 Subject: [PATCH] Assembling Coeffects_fun_param. 13765/14144. Summary: A file that now assembles: `slow/coeffects/policied/backdoor-4.php` Reviewed By: aorenste Differential Revision: D37896299 fbshipit-source-id: d04bbae8da4b094cf377d150a154268a125812c3 --- hphp/hack/src/hackc/hackc/assemble.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hphp/hack/src/hackc/hackc/assemble.rs b/hphp/hack/src/hackc/hackc/assemble.rs index 8e156d84950..9f2878dabeb 100644 --- a/hphp/hack/src/hackc/hackc/assemble.rs +++ b/hphp/hack/src/hackc/hackc/assemble.rs @@ -1538,11 +1538,18 @@ fn assemble_static_coeffects<'arena>( Ok(()) } +/// Ex: +/// .coeffects_fun_param 0; fn assemble_coeffects_fun_param( - _token_iter: &mut Lexer<'_>, - _fun_param: &mut Vec, + token_iter: &mut Lexer<'_>, + fun_param: &mut Vec, ) -> Result<()> { - todo!() + token_iter.expect_is_str(Token::into_decl, ".coeffects_fun_param")?; + while !token_iter.peek_if(Token::is_semicolon) { + fun_param.push(token_iter.expect_and_get_number()?); + } + token_iter.expect(Token::into_semicolon)?; + Ok(()) } /// Ex: -- 2.11.4.GIT