当前位置: 首页>>代码示例>>C#>>正文


C# SlicingExpression.get_Indices方法代码示例

本文整理汇总了C#中Boo.Lang.Compiler.Ast.SlicingExpression.get_Indices方法的典型用法代码示例。如果您正苦于以下问题:C# SlicingExpression.get_Indices方法的具体用法?C# SlicingExpression.get_Indices怎么用?C# SlicingExpression.get_Indices使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Boo.Lang.Compiler.Ast.SlicingExpression的用法示例。


在下文中一共展示了SlicingExpression.get_Indices方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: slice


//.........这里部分代码省略.........
                            expression3 = this.expression();
                            goto Label_03F1;

                        case 0x43:
                        case 0x45:
                            goto Label_03F1;
                    }
                    throw new NoViableAltException(this.LT(1), this.getFilename());
                }
                if ((((((num != 12) && (num != 15)) && ((num != 0x13) && (num != 0x1b))) && (((num != 0x1d) && (num != 0x27)) && ((num != 40) && (num != 0x2a)))) && ((((num != 0x2c) && (num != 0x3b)) && ((num != 60) && (num != 0x3d))) && (((num != 0x3f) && (num != 0x44)) && ((num != 0x4f) && (num != 80))))) && ((((num != 0x52) && (num != 0x58)) && ((num != 0x67) && (num != 0x69))) && (((num != 0x6a) && (num != 0x6b)) && ((num != 0x6c) && (num != 0x6d)))))
                {
                    throw new NoViableAltException(this.LT(1), this.getFilename());
                }
                expression = this.expression();
                num = this.LA(1);
                if (num == 0x42)
                {
                    this.match(0x42);
                    num = this.LA(1);
                    switch (num)
                    {
                        case 12:
                        case 15:
                        case 0x13:
                        case 0x1b:
                        case 0x1d:
                        case 0x27:
                        case 40:
                        case 0x2a:
                        case 0x2c:
                        case 0x3b:
                        case 60:
                        case 0x3d:
                        case 0x3f:
                        case 0x44:
                        case 0x4f:
                        case 80:
                        case 0x52:
                        case 0x58:
                        case 0x67:
                        case 0x69:
                        case 0x6a:
                        case 0x6b:
                        case 0x6c:
                        case 0x6d:
                            expression2 = this.expression();
                            break;

                        default:
                            if (((num != 0x42) && (num != 0x43)) && (num != 0x45))
                            {
                                throw new NoViableAltException(this.LT(1), this.getFilename());
                            }
                            if (base.inputState.guessing == 0)
                            {
                                expression2 = OmittedExpression.Default;
                            }
                            break;
                    }
                    num = this.LA(1);
                    switch (num)
                    {
                        case 0x42:
                            this.match(0x42);
                            expression3 = this.expression();
                            goto Label_03F1;

                        case 0x43:
                        case 0x45:
                            goto Label_03F1;

                        default:
                            throw new NoViableAltException(this.LT(1), this.getFilename());
                    }
                }
                switch (num)
                {
                    case 0x43:
                    case 0x45:
                        break;

                    default:
                        throw new NoViableAltException(this.LT(1), this.getFilename());
                }
            Label_03F1:
                if (base.inputState.guessing == 0)
                {
                    se.get_Indices().Add(new Slice(expression, expression2, expression3));
                }
            }
            catch (RecognitionException exception)
            {
                if (base.inputState.guessing != 0)
                {
                    throw;
                }
                this.reportError(exception);
                this.recover(exception, tokenSet_53_);
            }
        }
开发者ID:CarlosHBC,项目名称:UnityDecompiled,代码行数:101,代码来源:UnityScriptParser.cs


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