Amazon.KinesisTap.Expression/TextDecoration/TextDecorationParserFacade.cs
/// <summary>
/// Parse text decoration attribute into a list key value pairs
/// </summary>
/// <param name="textDecoration">Text Decoration declaration to parse</param>
/// <returns>List of key value pairs</returns>
Parse text decoration attribute into a list key value pairs
Parse text decoration attribute into a list key value pairs
public static NodeList<Node> ParseTextDecoration(string textDecoration)
        {
            SetupParser(textDecoration, out TextDecorationParser parser, out ErrorListener errorListener);
            var tree = parser.textDecoration();
            string errors = errorListener.Errors;
            if (!string.IsNullOrEmpty(errors))
            {
                throw new Exception(errors);
            }
            TextDecorationParserVisitor visitor = new TextDecorationParserVisitor();
            return (NodeList<Node>)visitor.Visit(tree);
        }
public static NodeList < Node > ParseTextDecoration ( string textDecoration ) { SetupParser ( textDecoration , out TextDecorationParser parser , out ErrorListener errorListener ) ; var tree = parser . textDecoration ( ) ; string errors = errorListener . Errors ; if ( ! string . IsNullOrEmpty ( errors ) ) { throw new Exception ( errors ) ; } TextDecorationParserVisitor visitor = new TextDecorationParserVisitor ( ) ; return ( NodeList < Node > ) visitor . Visit ( tree ) ; }
Parse text decoration attribute into a list key value pairs
Parse text decoration attribute into a list key value pairs
List of key value pairs
List of key value pairs
textDecoration
string
Text Decoration declaration to parse
Text Decoration declaration to parse