本文整理汇总了C#中ITreeNodeStream类的典型用法代码示例。如果您正苦于以下问题:C# ITreeNodeStream类的具体用法?C# ITreeNodeStream怎么用?C# ITreeNodeStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITreeNodeStream类属于命名空间,在下文中一共展示了ITreeNodeStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SqlGenerator
public SqlGenerator(ISessionFactoryImplementor sfi, ITreeNodeStream input)
: this(input)
{
parseErrorHandler = new ErrorCounter();
sessionFactory = sfi;
writer = new DefaultWriter(this);
}
示例2: AlloyOutliningTaggerWalker
private AlloyOutliningTaggerWalker(ITreeNodeStream input, ReadOnlyCollection<IToken> tokens, AlloyOutliningTaggerProvider provider, ITextSnapshot snapshot)
: base(input, snapshot, provider.OutputWindowService)
{
_tokens = tokens;
_provider = provider;
_snapshot = snapshot;
}
示例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;
}
示例4: TreeRewriter
public TreeRewriter( ITreeNodeStream input, RecognizerSharedState state )
: base( input, state )
{
originalAdaptor = input.TreeAdaptor;
originalTokenStream = input.TokenStream;
topdown_func = () => Topdown();
bottomup_func = () => Bottomup();
}
示例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;
}
示例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);
}
示例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;
}
示例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 );
}
}
示例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;
}
示例10: NadirASTOptimizer
public NadirASTOptimizer(ITreeNodeStream input, RecognizerSharedState state)
: base(input, state) {
InitializeCyclicDFAs();
}
示例11: TreeParser
public TreeParser(ITreeNodeStream input)
: base() // highlight that we go to super to set state object
{
TreeNodeStream = input;
}
示例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();
}
示例13: BonsaiTree
// delegates
// delegators
public BonsaiTree(ITreeNodeStream input)
: this(input, new RecognizerSharedState()) {
}
示例14: NadirTreeFilter
///////////////////////////////////////////
//
// Construction
//
///////////////////////////////////////////
public NadirTreeFilter(ITreeNodeStream input)
: this(input, new RecognizerSharedState())
{
}
示例15: ToTokenTypeString
public override string ToTokenTypeString( ITreeNodeStream stream )
{
return ( (BufferedTreeNodeStream)stream ).ToTokenTypeString();
}