本文整理汇总了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;未经允许,请勿转载。 |
请发表评论