_Core/Lang/Entities/FunctionLookupResult.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ComLib.Lang
{
/// <summary>
/// The result of searching for a function that is either internal/external
/// </summary>
public class FunctionLookupResult
{
/// <summary>
/// Null/Empty object.
/// </summary>
public static readonly FunctionLookupResult False = new FunctionLookupResult(false, string.Empty, MemberMode.FunctionScript);
/// <summary>
/// Whether or not the function represented by Name exists.
/// </summary>
public bool Exists;
/// <summary>
/// The name of the function.
/// </summary>
public string Name;
/// <summary>
/// Whether this is a internal script level or external function name.
/// </summary>
public MemberMode FunctionMode;
/// <summary>
/// The number of tokens that represented this.
/// </summary>
public int TokenCount;
/// <summary>
/// Intialize with defaults.
/// </summary>
public FunctionLookupResult()
{
}
/// <summary>
/// Initialize
/// </summary>
/// <param name="exists"></param>
/// <param name="name"></param>
/// <param name="mode"></param>
public FunctionLookupResult(bool exists, string name, MemberMode mode)
{
Exists = exists;
Name = name;
后面还有 4 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
