Created
October 20, 2021 10:26
-
-
Save rifatx/b0b5bb82fbdda9bac412bf52d7875878 to your computer and use it in GitHub Desktop.
ANTLR PlSqlParser VisitParameter override
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override object VisitParameter(PlSqlParser.ParameterContext context) | |
{ | |
var p = new Parameter | |
{ | |
Name = context.parameter_name().GetText(), | |
Direction = | |
$"{context.GetChild<TerminalNodeImpl>(0)?.GetText() ?? "IN"}{context.GetChild<TerminalNodeImpl>(1)?.GetText()}", | |
Type = context.type_spec().GetText() | |
}; | |
Parameters.Add(p); | |
return p; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment