尝试UTF32String
This commit is contained in:
@@ -20,17 +20,15 @@ namespace Fig::Ast
|
||||
class FunctionDefSt final : public StatementAst // for definition
|
||||
{
|
||||
public:
|
||||
FString name;
|
||||
String name;
|
||||
FunctionParameters paras;
|
||||
bool isPublic;
|
||||
Expression retType;
|
||||
Expression retType;
|
||||
BlockStatement body;
|
||||
|
||||
FunctionDefSt()
|
||||
{
|
||||
type = AstType::FunctionDefSt;
|
||||
}
|
||||
FunctionDefSt(FString _name, FunctionParameters _paras, bool _isPublic, Expression _retType, BlockStatement _body)
|
||||
FunctionDefSt() { type = AstType::FunctionDefSt; }
|
||||
FunctionDefSt(
|
||||
String _name, FunctionParameters _paras, bool _isPublic, Expression _retType, BlockStatement _body)
|
||||
{
|
||||
type = AstType::FunctionDefSt;
|
||||
|
||||
@@ -42,4 +40,4 @@ namespace Fig::Ast
|
||||
}
|
||||
};
|
||||
using FunctionDef = std::shared_ptr<FunctionDefSt>;
|
||||
}; // namespace Fig
|
||||
}; // namespace Fig::Ast
|
||||
Reference in New Issue
Block a user