コード例 #1
0
ファイル: SrcOp.cs プロジェクト: sharwell/antlr4cs
 protected SrcOp(OutputModelFactory factory, GrammarAST ast)
     : base(factory, ast)
 {
     if (ast != null)
         uniqueID = ast.Token.TokenIndex;
     enclosingBlock = factory.GetCurrentBlock();
     enclosingRuleRunction = factory.GetCurrentRuleFunction();
 }
コード例 #2
0
 public virtual void SetCurrentBlock(CodeBlock blk)
 {
     currentBlock = blk;
 }