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


C# CheckedStatement类代码示例

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


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

示例1: Visit

			public override object Visit(Checked checkedStatement)
			{
				var result = new CheckedStatement();
				result.AddChild(new CSharpTokenNode(Convert(checkedStatement.loc), CheckedStatement.CheckedKeywordRole), CheckedStatement.CheckedKeywordRole);
				if (checkedStatement.Block != null)
					result.AddChild((BlockStatement)checkedStatement.Block.Accept(this), Roles.Body);
				return result;
			}
开发者ID:0xb1dd1e,项目名称:NRefactory,代码行数:8,代码来源:CSharpParser.cs

示例2: VisitCheckedStatement

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

示例3: VisitCheckedStatement

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

示例4: VisitCheckedStatement

		public override void VisitCheckedStatement(CheckedStatement checkedStatement) {
			checkedStatement.Body.AcceptVisitor(this);
		}
开发者ID:chenxustu1,项目名称:SaltarelleCompiler,代码行数:3,代码来源:StatementCompiler.cs

示例5: VisitCheckedStatement

 public StringBuilder VisitCheckedStatement(CheckedStatement checkedStatement, int data)
 {
     throw new SLSharpException("SL# can only operate in unchecked context.");
 }
开发者ID:hach-que,项目名称:SLSharp,代码行数:4,代码来源:VisitorBase.Illegal.cs

示例6: VisitCheckedStatement

		public override void VisitCheckedStatement(CheckedStatement checkedStatement)
		{
			FixEmbeddedStatment(policy.StatementBraceStyle, policy.FixedBraceForcement, checkedStatement.Body);
		}
开发者ID:txdv,项目名称:monodevelop,代码行数:4,代码来源:AstFormattingVisitor.cs

示例7: VisitCheckedStatement

		public virtual void VisitCheckedStatement(CheckedStatement checkedStatement)
		{
			DebugExpression(checkedStatement);
			StartNode(checkedStatement);
			WriteKeywordReference(CheckedStatement.CheckedKeywordRole);
			checkedStatement.Body.AcceptVisitor(this);
			EndNode(checkedStatement);
		}
开发者ID:0xd4d,项目名称:NRefactory,代码行数:8,代码来源:CSharpOutputVisitor.cs

示例8: TrackedVisitCheckedStatement

		public virtual object TrackedVisitCheckedStatement(CheckedStatement checkedStatement, object data) {
			return base.VisitCheckedStatement(checkedStatement, data);
		}
开发者ID:mgagne-atman,项目名称:Projects,代码行数:3,代码来源:NodeTrackingAstVisitor.cs

示例9: VisitCheckedStatement

 public void VisitCheckedStatement(CheckedStatement checkedStatement)
 {
     JsonObject statement = CreateJsonStatement(checkedStatement);
     AddKeyword(statement, CheckedStatement.CheckedKeywordRole);
     statement.AddJsonValue("body", GenStatement(checkedStatement.Body));
     Push(statement);
 }
开发者ID:CompilerKit,项目名称:CodeWalk,代码行数:7,代码来源:AstCsToJson.cs

示例10: VisitCheckedStatement

		public virtual object VisitCheckedStatement(CheckedStatement checkedStatement, object data) {
			Debug.Assert((checkedStatement != null));
			Debug.Assert((checkedStatement.Block != null));
			return checkedStatement.Block.AcceptVisitor(this, data);
		}
开发者ID:mgagne-atman,项目名称:Projects,代码行数:5,代码来源:AbstractASTVisitor.cs

示例11: VisitCheckedStatement

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

示例12: VisitCheckedStatement

		public virtual object VisitCheckedStatement(CheckedStatement checkedStatement, object data) {
			throw new global::System.NotImplementedException("CheckedStatement");
		}
开发者ID:mgagne-atman,项目名称:Projects,代码行数:3,代码来源:NotImplementedAstVisitor.cs

示例13: VisitCheckedStatement

		public virtual object VisitCheckedStatement(CheckedStatement checkedStatement, object data) {
			Debug.Assert((checkedStatement != null));
			Debug.Assert((checkedStatement.Block != null));
			nodeStack.Push(checkedStatement.Block);
			checkedStatement.Block.AcceptVisitor(this, data);
			checkedStatement.Block = ((Statement)(nodeStack.Pop()));
			return null;
		}
开发者ID:mgagne-atman,项目名称:Projects,代码行数:8,代码来源:AbstractAstTransformer.cs

示例14: Visit

			public override object Visit (Checked checkedStatement)
			{
				var result = new CheckedStatement ();
				result.AddChild (new CSharpTokenNode (Convert (checkedStatement.loc), "checked".Length), CheckedStatement.Roles.Keyword);
				result.AddChild ((INode)checkedStatement.Block.Accept (this), CheckedStatement.Roles.EmbeddedStatement);
				return result;
			}
开发者ID:pgoron,项目名称:monodevelop,代码行数:7,代码来源:CSharpParser.cs

示例15: Process_Checked_Statement

 private void Process_Checked_Statement(StringBuilder sb, CheckedStatement statement)
 {
     sb.Append("checked");
     sb.Append(ProcessStatement(statement.Statement));
 }
开发者ID:uQr,项目名称:Visual-NHibernate,代码行数:5,代码来源:CSharpCodeFormatter.cs


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