refactor: 更新 matchHeader 函数参数注释
- 将关键字参数注释中的 "initializer" 改为 "init",以匹配实际代码中的使用
This commit is contained in:
parent
bc309dfa97
commit
d92e3d0e17
@ -25,7 +25,7 @@ public class ParserUtils {
|
|||||||
* 若格式不匹配,将抛出语法异常。
|
* 若格式不匹配,将抛出语法异常。
|
||||||
*
|
*
|
||||||
* @param ts 当前的 token 流
|
* @param ts 当前的 token 流
|
||||||
* @param keyword 结构起始关键字(如 "loop", "function", "initializer" 等)
|
* @param keyword 结构起始关键字(如 "loop", "function", "init" 等)
|
||||||
*/
|
*/
|
||||||
public static void matchHeader(TokenStream ts, String keyword) {
|
public static void matchHeader(TokenStream ts, String keyword) {
|
||||||
ts.expect(keyword); // 匹配关键字
|
ts.expect(keyword); // 匹配关键字
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user