Пример #1
0
        /// <summary>
        /// After parsing is complete, register the alias.
        /// </summary>
        /// <param name="node"></param>
        public void OnParseComplete(AstNode node)
        {
            var stmt   = node as AliasStmt;
            var plugin = new AliasTokenPlugin(stmt.Alias, stmt.Actual);

            plugin.Init(_parser, _tokenIt);
            Ctx.Plugins.RegisterTokenPlugin(plugin, true);
        }
Пример #2
0
 /// <summary>
 /// After parsing is complete, register the alias.
 /// </summary>
 /// <param name="node"></param>
 public void OnParseComplete(AstNode node)
 {
     var stmt = node as AliasStmt;
     var plugin = new AliasTokenPlugin(stmt.Alias, stmt.Actual);
     plugin.Init(_parser, _tokenIt);
     Ctx.Plugins.RegisterTokenPlugin(plugin, true);
 }