public override void EnterFunctionReturningPhrase(CodeElementsParser.FunctionReturningPhraseContext context) { var ce = (FunctionDeclarationHeader)CodeElement; ce.Returning = new SyntaxProperty<Passing.Mode>(Passing.Mode.Returning, ParseTreeUtils.GetTokenFromTerminalNode(context.RETURNING())); if (context.parameterDescription().functionDataParameter() != null) { var entry = CreateFunctionDataParameter(context.parameterDescription().functionDataParameter()); ce.Profile.ReturningParameter = new ParameterDescription(entry); } }
public override void EnterOutputPhrase(CodeElementsParser.OutputPhraseContext context) { var ce = (FunctionDeclarationHeader)CodeElement; ce.Output = new SyntaxProperty<Passing.Mode>(Passing.Mode.Output, ParseTreeUtils.GetTokenFromTerminalNode(context.OUTPUT())); ce.Profile.OutputParameters = CreateParameters(context.parameterDescription()); }