• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Qil.QilList类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Xml.Xsl.Qil.QilList的典型用法代码示例。如果您正苦于以下问题:C# QilList类的具体用法?C# QilList怎么用?C# QilList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



QilList类属于System.Xml.Xsl.Qil命名空间,在下文中一共展示了QilList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: PrepareGlobalValues

        /// <summary>
        /// Create IteratorDescriptor for each global value.  This pre-visit is necessary because a global early
        /// in the list may reference a global later in the list and therefore expect its IteratorDescriptor to already
        /// be initialized.
        /// </summary>
        private void PrepareGlobalValues(QilList globalIterators) {
            MethodInfo methGlobal;
            IteratorDescriptor iterInfo;

            foreach (QilIterator iter in globalIterators) {
                Debug.Assert(iter.NodeType == QilNodeType.Let || iter.NodeType == QilNodeType.Parameter);

                // Get metadata for method which computes this global's value
                methGlobal = XmlILAnnotation.Write(iter).FunctionBinding;
                Debug.Assert(methGlobal != null, "Metadata for global value should have already been computed");

                // Create an IteratorDescriptor for this global value
                iterInfo = new IteratorDescriptor(this.helper);

                // Iterator items will be stored in a global location
                iterInfo.Storage = StorageDescriptor.Global(methGlobal, GetItemStorageType(iter), !iter.XmlType.IsSingleton);

                // Associate IteratorDescriptor with parameter
                XmlILAnnotation.Write(iter).CachedIteratorDescriptor = iterInfo;
            }
        }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:26,代码来源:XmlIlVisitor.cs


示例2: VisitSequence

 protected override QilNode VisitSequence(QilList n) { return NoReplace(n); }
开发者ID:uQr,项目名称:referencesource,代码行数:1,代码来源:QilPatternVisitor.cs


示例3: Function

 public QilFunction Function(QilList args, QilNode defn, QilNode sideEffects) {
     Debug.Assert(args.NodeType == QilNodeType.FormalParameterList);
     return f.Function(args, defn, sideEffects, defn.XmlType);
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:4,代码来源:QilPatternFactory.cs


示例4: Choice

 public QilNode Choice(QilNode expr, QilList branches) {
     if (! debug) {
         switch (branches.Count) {
         case 1:
             // If expr has no side effects, it will be eliminated by optimizer
             return f.Loop(f.Let(expr), branches[0]);
         case 2:
             return f.Conditional(f.Eq(expr, f.LiteralInt32(0)), branches[0], branches[1]);
         }
     }
     return f.Choice(expr, branches);
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:12,代码来源:QilPatternFactory.cs


示例5: CheckBranchList

 public XmlQueryType CheckBranchList(QilList node) {
     return node.XmlType;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:3,代码来源:QilTypeChecker.cs


示例6: CheckFormalParameterList

 public XmlQueryType CheckFormalParameterList(QilList node) {
     foreach (QilNode child in node)
         CheckClassAndNodeType(child, typeof(QilParameter), QilNodeType.Parameter);
     return node.XmlType;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:5,代码来源:QilTypeChecker.cs


示例7: CheckGlobalParameterList

 public XmlQueryType CheckGlobalParameterList(QilList node) {
     foreach (QilNode child in node) {
         CheckClassAndNodeType(child, typeof(QilParameter), QilNodeType.Parameter);
         Check(((QilParameter)child).Name != null, child, "Global parameter's name is null");
     }
     return node.XmlType;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:7,代码来源:QilTypeChecker.cs


示例8: CheckFunctionList

 public XmlQueryType CheckFunctionList(QilList node) {
     foreach (QilNode child in node)
         CheckClassAndNodeType(child, typeof(QilFunction), QilNodeType.Function);
     return node.XmlType;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:5,代码来源:QilTypeChecker.cs


示例9: VisitBranchList

 protected override QilNode VisitBranchList(QilList n) { return NoReplace(n); }
开发者ID:uQr,项目名称:referencesource,代码行数:1,代码来源:QilPatternVisitor.cs


示例10: VisitSortKeyList

 protected override QilNode VisitSortKeyList(QilList n) { return NoReplace(n); }
开发者ID:uQr,项目名称:referencesource,代码行数:1,代码来源:QilPatternVisitor.cs


示例11: VisitFormalParameterList

 protected override QilNode VisitFormalParameterList(QilList n) { return NoReplace(n); }
开发者ID:uQr,项目名称:referencesource,代码行数:1,代码来源:QilPatternVisitor.cs


示例12: VisitGlobalVariableList

 protected override QilNode VisitGlobalVariableList(QilList n) { return NoReplace(n); }
开发者ID:uQr,项目名称:referencesource,代码行数:1,代码来源:QilPatternVisitor.cs


示例13: VisitFunctionList

 protected override QilNode VisitFunctionList(QilList n) { return NoReplace(n); }
开发者ID:uQr,项目名称:referencesource,代码行数:1,代码来源:QilPatternVisitor.cs


示例14: CheckGlobalVariableList

 public XmlQueryType CheckGlobalVariableList(QilList node) {
     foreach (QilNode child in node)
         CheckClassAndNodeType(child, typeof(QilIterator), QilNodeType.Let);
     return node.XmlType;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:5,代码来源:QilTypeChecker.cs


示例15: VisitFunctionList

 protected virtual QilNode VisitFunctionList(QilList n) { return VisitChildren(n); }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:1,代码来源:QilVisitor.cs


示例16: CheckActualParameterList

 public XmlQueryType CheckActualParameterList(QilList node) {
     return node.XmlType;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:3,代码来源:QilTypeChecker.cs


示例17: VisitGlobalVariableList

 protected virtual QilNode VisitGlobalVariableList(QilList n) { return VisitChildren(n); }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:1,代码来源:QilVisitor.cs


示例18: CheckSortKeyList

 public XmlQueryType CheckSortKeyList(QilList node) {
     foreach (QilNode child in node)
         CheckClassAndNodeType(child, typeof(QilSortKey), QilNodeType.SortKey);
     return node.XmlType;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:5,代码来源:QilTypeChecker.cs


示例19: VisitFormalParameterList

 protected virtual QilNode VisitFormalParameterList(QilList n) { return VisitChildren(n); }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:1,代码来源:QilVisitor.cs


示例20: CheckSequence

 public XmlQueryType CheckSequence(QilList node) {
     return node.XmlType;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:3,代码来源:QilTypeChecker.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Qil.QilLiteral类代码示例发布时间:2022-05-26
下一篇:
C# Qil.QilIterator类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap