diff --git a/src/protocol/ast.rs b/src/protocol/ast.rs index fce70b5b8456ac9fe9a3a23c835a7130a1b5fc62..c119e5ed087671302601906a25c5e0eff565789d 100644 --- a/src/protocol/ast.rs +++ b/src/protocol/ast.rs @@ -1086,6 +1086,7 @@ pub enum ProcedureSource { // Builtin components, available to user CompRandomU32, // TODO: Remove, temporary thing CompTcpClient, + CompTcpListener, } impl ProcedureSource { @@ -1852,6 +1853,7 @@ pub enum Method { // Builtin component, ComponentRandomU32, ComponentTcpClient, + ComponentTcpListener, // User-defined UserFunction, UserComponent, @@ -1862,7 +1864,7 @@ impl Method { use Method::*; match self { Get | Put | Fires | Create | Length | Assert | Print => true, - ComponentRandomU32 | ComponentTcpClient => true, + ComponentRandomU32 | ComponentTcpClient | ComponentTcpListener => true, _ => false, } }