Skip to content

M_Cyjb_Text_UnexpectedTokenError_1__ctor

CYJB edited this page Mar 23, 2024 · 7 revisions

UnexpectedTokenError(T) 构造函数

使用非预期的词法单元列表初始化 UnexpectedTokenError(T) 类的新实例。

Namespace: Cyjb.Text
Assembly: Cyjb.Compilers.Runtime (in Cyjb.Compilers.Runtime.dll) Version: 1.0.20+d347ea0351607fb282fdf60a5301f9cccb3ab27e

语法

C#

public UnexpectedTokenError(
	Token<T> token,
	IReadOnlySet<T> expecting
)

参数

 

token
Type: Cyjb.Text.Token(T)
非预期的词法单元。
expecting
Type: System.Collections.Generic.IReadOnlySet(T)
预期的词法单元类型。

参见

Reference

UnexpectedTokenError(T) 类
Cyjb.Text 命名空间

Clone this wiki locally