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

C# UndocumentedExpression类代码示例

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

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



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

示例1: VisitUndocumentedExpression

		public void VisitUndocumentedExpression(UndocumentedExpression undocumentedExpression)
		{
			StartNode(undocumentedExpression);
			switch (undocumentedExpression.UndocumentedExpressionType) {
				case UndocumentedExpressionType.ArgList:
				case UndocumentedExpressionType.ArgListAccess:
					WriteKeyword(UndocumentedExpression.ArglistKeywordRole);
					break;
				case UndocumentedExpressionType.MakeRef:
					WriteKeyword(UndocumentedExpression.MakerefKeywordRole);
					break;
				case UndocumentedExpressionType.RefType:
					WriteKeyword(UndocumentedExpression.ReftypeKeywordRole);
					break;
				case UndocumentedExpressionType.RefValue:
					WriteKeyword(UndocumentedExpression.RefvalueKeywordRole);
					break;
			}
			if (undocumentedExpression.Arguments.Count > 0) {
				Space(policy.SpaceBeforeMethodCallParentheses);
				WriteCommaSeparatedListInParenthesis(undocumentedExpression.Arguments, policy.SpaceWithinMethodCallParentheses);
			}
			EndNode(undocumentedExpression);
		}
开发者ID:x-strong,项目名称:ILSpy,代码行数:24,代码来源:CSharpOutputVisitor.cs


示例2: Visit

			public override object Visit(RefValueExpr refValueExpr)
			{
				var result = new UndocumentedExpression { UndocumentedExpressionType = UndocumentedExpressionType.RefValue };
				result.AddChild(new CSharpTokenNode(Convert(refValueExpr.Location), UndocumentedExpression.RefvalueKeywordRole), UndocumentedExpression.RefvalueKeywordRole);
				var location = LocationsBag.GetLocations(refValueExpr);
				if (location != null)
					result.AddChild(new CSharpTokenNode(Convert(location [0]), Roles.LPar), Roles.LPar);
				
				
				if (refValueExpr.Expr != null)
					result.AddChild((Expression)refValueExpr.Expr.Accept(this), Roles.Argument);

				if (refValueExpr.FullNamedExpression != null)
					result.AddChild((Expression)refValueExpr.FullNamedExpression.Accept(this), Roles.Argument);
				
				if (location != null && location.Count > 1)
					result.AddChild(new CSharpTokenNode(Convert(location [1]), Roles.RPar), Roles.RPar);
				return result;
			}
开发者ID:0xb1dd1e,项目名称:NRefactory,代码行数:19,代码来源:CSharpParser.cs


示例3: VisitUndocumentedExpression

		public virtual void VisitUndocumentedExpression (UndocumentedExpression undocumentedExpression)
		{
			VisitChildren (undocumentedExpression);
		}
开发者ID:modulexcite,项目名称:ICSharpCode.Decompiler-retired,代码行数:4,代码来源:DepthFirstAstVisitor.cs


示例4: Visit

			public override object Visit (RefTypeExpr refTypeExpr)
			{
				var result = new UndocumentedExpression () { UndocumentedExpressionType = UndocumentedExpressionType.RefValue };
				result.AddChild (new CSharpTokenNode (Convert (refTypeExpr.Location), "__reftype".Length), UndocumentedExpression.Roles.Keyword);
				var location = LocationsBag.GetLocations (refTypeExpr);
				if (location != null)
					result.AddChild (new CSharpTokenNode (Convert (location[0]), 1), UndocumentedExpression.Roles.LPar);
				
				if (refTypeExpr.Expr != null)
					result.AddChild ((Expression)refTypeExpr.Expr.Accept (this), UndocumentedExpression.Roles.Argument);
				
				if (location != null)
					result.AddChild (new CSharpTokenNode (Convert (location[1]), 1), UndocumentedExpression.Roles.RPar);
				return result;
			}
开发者ID:N3X15,项目名称:ILSpy,代码行数:15,代码来源:CSharpParser.cs


示例5: Visit

 public override object Visit(MakeRefExpr makeRefExpr)
 {
     var result = new UndocumentedExpression () { UndocumentedExpressionType = UndocumentedExpressionType.MakeRef };
     result.AddChild (new CSharpTokenNode (Convert (makeRefExpr.Location), UndocumentedExpression.MakerefKeywordRole), UndocumentedExpression.MakerefKeywordRole);
     var location = LocationsBag.GetLocations (makeRefExpr);
     if (location != null)
         result.AddChild (new CSharpTokenNode (Convert (location [0]), Roles.LPar), Roles.LPar);
     if (makeRefExpr.Expr != null)
         result.AddChild ((Expression)makeRefExpr.Expr.Accept (this), Roles.Argument);
     if (location != null && location.Count > 1)
         result.AddChild (new CSharpTokenNode (Convert (location [1]), Roles.RPar), Roles.RPar);
     return result;
 }
开发者ID:kaagati,项目名称:NRefactory,代码行数:13,代码来源:CSharpParser.cs


示例6: VisitUndocumentedExpression

 public virtual void VisitUndocumentedExpression(UndocumentedExpression undocumentedExpression)
 {
     if (this.ThrowException)
     {
         throw (Exception)this.CreateException(undocumentedExpression);
     }
 }
开发者ID:fabriciomurta,项目名称:BridgeUnified,代码行数:7,代码来源:Visitor.Exception.cs


示例7: VisitUndocumentedExpression

 public StringBuilder VisitUndocumentedExpression(UndocumentedExpression undocumentedExpression, int data)
 {
     throw new SLSharpException("Unsupported nonstandard language extension encountered.");
 }
开发者ID:hach-que,项目名称:SLSharp,代码行数:4,代码来源:VisitorBase.Illegal.cs


示例8: VisitUndocumentedExpression

        public void VisitUndocumentedExpression(UndocumentedExpression undocumentedExpression)
        {
            JsonObject expression = CreateJsonExpression(undocumentedExpression);


            switch (undocumentedExpression.UndocumentedExpressionType)
            {
                case UndocumentedExpressionType.ArgList:
                case UndocumentedExpressionType.ArgListAccess:
                    GetTypeIndex(UndocumentedExpression.ArglistKeywordRole.Token);
                    expression.AddJsonValue("type-info", GetTypeIndex(UndocumentedExpression.ArglistKeywordRole.Token));
                    break;
                case UndocumentedExpressionType.MakeRef:
                    expression.AddJsonValue("type-info", GetTypeIndex(UndocumentedExpression.MakerefKeywordRole.Token));
                    break;
                case UndocumentedExpressionType.RefType:
                    expression.AddJsonValue("type-info", GetTypeIndex(UndocumentedExpression.ReftypeKeywordRole.Token));
                    break;
                case UndocumentedExpressionType.RefValue:
                    expression.AddJsonValue("type-info", GetTypeIndex(UndocumentedExpression.RefvalueKeywordRole.Token));
                    break;
                default:
                    throw new Exception("unknowed type");
            }
            if (undocumentedExpression.Arguments.Count > 0)
            {
                expression.AddJsonValue("arguments", GetCommaSeparatedList(undocumentedExpression.Arguments));
            }
            else
            {
                expression.AddJsonNull("arguments");
            }
            Push(expression);

        }
开发者ID:CompilerKit,项目名称:CodeWalk,代码行数:35,代码来源:AstCsToJson.cs


示例9: VisitUndocumentedExpression

 public void VisitUndocumentedExpression(UndocumentedExpression node)
 {
     NotSupported(node);
 }
开发者ID:evanw,项目名称:minisharp,代码行数:4,代码来源:Lower.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# UnhandledExceptionEventArgs类代码示例发布时间:2022-05-24
下一篇:
C# UndoOperation类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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