_Core/Lang/AST/Statements/BlockStmt.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using ComLib.Lang.Helpers;
namespace ComLib.Lang
{
/// <summary>
/// For loop Expression data
/// </summary>
public class BlockStmt : Stmt
{
/// <summary>
/// List of statements
/// </summary>
protected List<Stmt> _statements = new List<Stmt>();
/// <summary>
/// Public access to statments.
/// </summary>
public List<Stmt> Statements
{
get { return _statements; }
}
/// <summary>
/// Executes the statement.
/// </summary>
public override void Execute()
{
if (this.Ctx != null && this.Ctx.Callbacks.HasAny)
{
Ctx.Callbacks.Notify("statement-on-before-execute", this, this);
ExecuteBlock();
Ctx.Callbacks.Notify("statement-on-after-execute", this, this);
return;
}
ExecuteBlock();
}
/// <summary>
/// Execute the statements.
/// </summary>
public override void DoExecute()
{
LangHelper.Execute(this._statements, this.Parent);
}
/// <summary>
/// Executes the block with callback/template methods.
/// </summary>
protected virtual void ExecuteBlock()
后面还有 60 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
