update: 修改一处变量名为小驼峰形式

This commit is contained in:
zhangxun 2025-06-17 21:40:07 +08:00 committed by Luke
parent ee9e56c479
commit 7a9cfc1861

View File

@ -36,7 +36,7 @@ public class IRContext {
/**
* 当前声明变量的类型不在声明变量时为空
*/
private Optional<String> var_type;
private Optional<String> varType;
/**
* 构造一个新的 IRContext并将指定的 IRFunction 与作用域关联
@ -48,7 +48,7 @@ public class IRContext {
this.scope = new IRBuilderScope();
// 关联作用域与 IRFunction以便在声明变量时申请寄存器
this.scope.attachFunction(function);
this.var_type = Optional.empty();
this.varType = Optional.empty();
}
/**
@ -100,7 +100,7 @@ public class IRContext {
* @return 当前 declare 的变量类型
*/
public Optional<String> getVarType() {
return var_type;
return varType;
}
/**
@ -108,7 +108,7 @@ public class IRContext {
*
*/
public void setVarType(String type) {
this.var_type = Optional.of(type);
this.varType = Optional.of(type);
}
/**
@ -116,6 +116,6 @@ public class IRContext {
*
*/
public void clearVarType() {
this.var_type = Optional.empty();
this.varType = Optional.empty();
}
}