• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ITreeNodeStream类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ITreeNodeStream的典型用法代码示例。如果您正苦于以下问题:C# ITreeNodeStream类的具体用法?C# ITreeNodeStream怎么用?C# ITreeNodeStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ITreeNodeStream类属于命名空间,在下文中一共展示了ITreeNodeStream类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: SqlGenerator

 public SqlGenerator(ISessionFactoryImplementor sfi, ITreeNodeStream input)
     : this(input)
 {
     parseErrorHandler = new ErrorCounter();
     sessionFactory = sfi;
     writer = new DefaultWriter(this);
 }
开发者ID:umittal,项目名称:MunimJi,代码行数:7,代码来源:SqlGenerator.cs


示例2: AlloyOutliningTaggerWalker

 private AlloyOutliningTaggerWalker(ITreeNodeStream input, ReadOnlyCollection<IToken> tokens, AlloyOutliningTaggerProvider provider, ITextSnapshot snapshot)
     : base(input, snapshot, provider.OutputWindowService)
 {
     _tokens = tokens;
     _provider = provider;
     _snapshot = snapshot;
 }
开发者ID:sebandraos,项目名称:LangSvcV2,代码行数:7,代码来源:AlloyOutliningTaggerWalker.cs


示例3: CodeGenerator

 public CodeGenerator(ITreeNodeStream input, TemplateCompiler compiler, string name, string template, IToken templateToken)
     : this(input, new RecognizerSharedState())
 {
     this._compiler = compiler;
     this.outermostTemplateName = name;
     this._template = template;
     this.templateToken = templateToken;
 }
开发者ID:JSchofield,项目名称:antlrcs,代码行数:8,代码来源:CodeGenerator.g3.cs


示例4: TreeRewriter

 public TreeRewriter( ITreeNodeStream input, RecognizerSharedState state )
     : base( input, state )
 {
     originalAdaptor = input.TreeAdaptor;
     originalTokenStream = input.TokenStream;
     topdown_func = () => Topdown();
     bottomup_func = () => Bottomup();
 }
开发者ID:ksmyth,项目名称:antlr,代码行数:8,代码来源:TreeRewriter.cs


示例5: AlloyEditorNavigationSourceWalker

        private AlloyEditorNavigationSourceWalker(ITreeNodeStream input, ITextSnapshot snapshot, ReadOnlyCollection<IToken> tokens, IEditorNavigationTypeRegistryService editorNavigationTypeRegistryService, IGlyphService glyphService, IOutputWindowService outputWindowService)
            : base(input, snapshot, outputWindowService)
        {
            Contract.Requires<ArgumentNullException>(editorNavigationTypeRegistryService != null, "editorNavigationTypeRegistryService");
            Contract.Requires<ArgumentNullException>(glyphService != null, "glyphService");

            _tokens = tokens;
            _editorNavigationTypeRegistryService = editorNavigationTypeRegistryService;
            _glyphService = glyphService;
        }
开发者ID:sebandraos,项目名称:LangSvcV2,代码行数:10,代码来源:AlloyEditorNavigationSourceWalker.cs


示例6: LeftRecursiveRuleAnalyzer

 public LeftRecursiveRuleAnalyzer(ITreeNodeStream input, Grammar g, string ruleName)
     : base(input)
 {
     this.g = g;
     this.ruleName = ruleName;
     language = (string)g.GetOption("language");
     generator = new CodeGenerator(g.Tool, g, language);
     generator.LoadTemplates(language);
     recRuleTemplates = LoadPrecRuleTemplates(g.Tool);
 }
开发者ID:JSchofield,项目名称:antlrcs,代码行数:10,代码来源:LeftRecursiveRuleAnalyzer.cs


示例7: HqlSqlWalker

		public HqlSqlWalker(QueryTranslatorImpl qti,
					  ISessionFactoryImplementor sfi,
					  ITreeNodeStream input, 
					  IDictionary<string, string> tokenReplacements,
					  string collectionRole)
			: this(input)
		{
			_sessionFactoryHelper = new SessionFactoryHelperExtensions(sfi);
			_qti = qti;
			_literalProcessor = new LiteralProcessor(this);
			_tokenReplacements = tokenReplacements;
			_collectionFilterRole = collectionRole;
		}
开发者ID:jlevitt,项目名称:nhibernate-core,代码行数:13,代码来源:HqlSqlWalker.cs


示例8: DebugTreeGrammar

		public DebugTreeGrammar( ITreeNodeStream input, int port, RecognizerSharedState state )
			: base( input, state )
		{
			DebugEventSocketProxy proxy = new DebugEventSocketProxy( this, port, input.TreeAdaptor );
			DebugListener = proxy;
			try
			{
				proxy.Handshake();
			}
			catch ( IOException ioe )
			{
				ReportError( ioe );
			}
		}
开发者ID:EightPillars,项目名称:PathwayEditor,代码行数:14,代码来源:DebugTreeGrammar.cs


示例9: TreeRewriter

 public TreeRewriter(ITreeNodeStream input, RecognizerSharedState state) : base(input, state)
 {
     Func<IAstRuleReturnScope> func = null;
     Func<IAstRuleReturnScope> func2 = null;
     this.originalAdaptor = input.TreeAdaptor;
     this.originalTokenStream = input.TokenStream;
     if (func == null)
     {
         func = () => this.Topdown();
     }
     this.topdown_func = func;
     if (func2 == null)
     {
         func2 = () => this.Bottomup();
     }
     this.bottomup_func = func2;
 }
开发者ID:brunolauze,项目名称:mysql-connector-net-6,代码行数:17,代码来源:TreeRewriter.cs


示例10: NadirASTOptimizer

        public NadirASTOptimizer(ITreeNodeStream input, RecognizerSharedState state)
    		: base(input, state) {
            InitializeCyclicDFAs();

             
        }
开发者ID:rgatkinson,项目名称:nadir,代码行数:6,代码来源:NadirASTOptimizer.cs


示例11: TreeParser

		public TreeParser(ITreeNodeStream input)
			: base() // highlight that we go to super to set state object
		{
			TreeNodeStream = input;
		}
开发者ID:sebasjm,项目名称:antlr,代码行数:5,代码来源:TreeParser.cs


示例12: ToNodesOnlyString

 public string ToNodesOnlyString( ITreeNodeStream nodes )
 {
     ITreeAdaptor adaptor = nodes.TreeAdaptor;
     StringBuilder buf = new StringBuilder();
     object o = nodes.LT( 1 );
     int type = adaptor.GetType( o );
     while ( o != null && type != TokenTypes.EndOfFile )
     {
         if ( !( type == TokenTypes.Down || type == TokenTypes.Up ) )
         {
             buf.Append( " " );
             buf.Append( type );
         }
         nodes.Consume();
         o = nodes.LT( 1 );
         type = adaptor.GetType( o );
     }
     return buf.ToString();
 }
开发者ID:mahanteshck,项目名称:antlrcs,代码行数:19,代码来源:TestTreeNodeStream.cs


示例13: BonsaiTree

    // delegates
    // delegators



        public BonsaiTree(ITreeNodeStream input)
    		: this(input, new RecognizerSharedState()) {
        }
开发者ID:eugen,项目名称:Bonsai,代码行数:8,代码来源:BonsaiTree.cs


示例14: NadirTreeFilter

    ///////////////////////////////////////////
    //
    // Construction
    //
    ///////////////////////////////////////////

    public NadirTreeFilter(ITreeNodeStream input) 
        : this(input, new RecognizerSharedState())
        {
        }
开发者ID:rgatkinson,项目名称:nadir,代码行数:10,代码来源:AntrRuntimeFixes.cs


示例15: ToTokenTypeString

 public override string ToTokenTypeString( ITreeNodeStream stream )
 {
     return ( (BufferedTreeNodeStream)stream ).ToTokenTypeString();
 }
开发者ID:mahanteshck,项目名称:antlrcs,代码行数:4,代码来源:TestBufferedTreeNodeStream.cs


示例16: SqlGenerator

        public SqlGenerator(ITreeNodeStream input, RecognizerSharedState state)
    		: base(input, state) {
            InitializeCyclicDFAs();

             
        }
开发者ID:paulbatum,项目名称:nhibernate,代码行数:6,代码来源:SqlGenerator.cs


示例17: PrepareFromClauseInputTree

		void PrepareFromClauseInputTree(IASTNode fromClauseInput, ITreeNodeStream input)
		{
			if (IsFilter())
			{
				// Handle collection-fiter compilation.
				// IMPORTANT NOTE: This is modifying the INPUT (HQL) tree, not the output tree!
				IQueryableCollection persister = _sessionFactoryHelper.GetCollectionPersister(_collectionFilterRole);
				IType collectionElementType = persister.ElementType;
				if (!collectionElementType.IsEntityType)
				{
					throw new QueryException("collection of values in filter: this");
				}

				string collectionElementEntityName = persister.ElementPersister.EntityName;

				IASTNode fromElement = (IASTNode)adaptor.Create(FILTER_ENTITY, collectionElementEntityName);
				IASTNode alias = (IASTNode)adaptor.Create(ALIAS, "this");

                ((HqlSqlWalkerTreeNodeStream)input).InsertChild(fromClauseInput, fromElement);
                ((HqlSqlWalkerTreeNodeStream)input).InsertChild(fromClauseInput, alias);

//				fromClauseInput.AddChild(fromElement);
//				fromClauseInput.AddChild(alias);

				// Show the modified AST.
				if (log.IsDebugEnabled)
				{
					log.Debug("prepareFromClauseInputTree() : Filter - Added 'this' as a from element...");
				}
				
				// Create a parameter specification for the collection filter...
				IType collectionFilterKeyType = _sessionFactoryHelper.RequireQueryableCollection(_collectionFilterRole).KeyType;
				ParameterNode collectionFilterKeyParameter = (ParameterNode)adaptor.Create(PARAM, "?");
				CollectionFilterKeyParameterSpecification collectionFilterKeyParameterSpec = new CollectionFilterKeyParameterSpecification(
						_collectionFilterRole, collectionFilterKeyType, _positionalParameterCount++
				);
				collectionFilterKeyParameter.HqlParameterSpecification = collectionFilterKeyParameterSpec;
				_parameters.Add(collectionFilterKeyParameterSpec);
			}
		}
开发者ID:NikGovorov,项目名称:nhibernate-core,代码行数:40,代码来源:HqlSqlWalker.cs


示例18: ExtractInformationFromTreeNodeStream

        protected virtual void ExtractInformationFromTreeNodeStream(ITreeNodeStream input, int k)
        {
            int mark = input.Mark();
            try
            {
                for (int i = 0; i < k - 1; i++)
                    input.Consume();

                ExtractInformationFromTreeNodeStream(input);
            }
            finally
            {
                input.Rewind(mark);
            }
        }
开发者ID:benpriebe,项目名称:TypeSql,代码行数:15,代码来源:RecognitionException.cs


示例19: ToTokenTypeString

 public virtual string ToTokenTypeString( ITreeNodeStream stream )
 {
     return ( (CommonTreeNodeStream)stream ).ToTokenTypeString();
 }
开发者ID:mahanteshck,项目名称:antlrcs,代码行数:4,代码来源:TestTreeNodeStream.cs


示例20: NadirTreeParserBase

 public NadirTreeParserBase(ITreeNodeStream input, RecognizerSharedState state) : base(input, state)
     {
     }
开发者ID:rgatkinson,项目名称:nadir,代码行数:3,代码来源:AntrRuntimeFixes.cs



注:本文中的ITreeNodeStream类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ITrigger类代码示例发布时间:2022-05-24
下一篇:
C# ITreeNode类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap