From 08935d69c0a300dc8661eec67bee0ef12d64360a Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 24 Aug 2022 00:52:37 -0400 Subject: [PATCH] Parser actually adds interface behavior to interface --- parser/face.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parser/face.go b/parser/face.go index d0e1b64..3a53381 100644 --- a/parser/face.go +++ b/parser/face.go @@ -60,6 +60,7 @@ func (parser *ParsingOperation) parseFaceSection () ( infoerr.ErrorKindError) return } + section.behaviors[behavior.name] = behavior if err != nil { return } } @@ -121,8 +122,8 @@ func (parser *ParsingOperation) parseFaceBehavior () ( behavior.inputs, declaration) } else { - behavior.inputs = append ( - behavior.inputs, + behavior.outputs = append ( + behavior.outputs, declaration) } }