本文整理汇总了C#中ProgramClassParser.NextSentenceStatement方法的典型用法代码示例。如果您正苦于以下问题:C# ProgramClassParser.NextSentenceStatement方法的具体用法?C# ProgramClassParser.NextSentenceStatement怎么用?C# ProgramClassParser.NextSentenceStatement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProgramClassParser
的用法示例。
在下文中一共展示了ProgramClassParser.NextSentenceStatement方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EnterWhenSearchConditionClause
public override void EnterWhenSearchConditionClause(ProgramClassParser.WhenSearchConditionClauseContext context)
{
var terminal = context.WhenSearchCondition();
var condition = terminal != null? (WhenSearchCondition)terminal.Symbol : null;
Enter(new WhenSearch(condition), context);
if (context.NextSentenceStatement() != null) {
Enter(new NextSentence((NextSentenceStatement)context.NextSentenceStatement().Symbol));
Exit();
}
}
示例2: EnterElseClause
public override void EnterElseClause(ProgramClassParser.ElseClauseContext context)
{
Exit();// we want ELSE to be child of IF, not THEN, so exit THEN
var terminal = context.ElseCondition();
var condition = terminal != null? (ElseCondition)terminal.Symbol : null;
Enter(new Else(condition), context);// ELSE
if (context.NextSentenceStatement() != null) {
Enter(new NextSentence((NextSentenceStatement)context.NextSentenceStatement().Symbol));
Exit();
}
}