2424#pragma once
2525
2626#include < libyul/ASTForward.h>
27- #include < libyul/YulString .h>
27+ #include < libyul/YulName .h>
2828
2929#include < liblangutil/DebugData.h>
3030
3636namespace solidity ::yul
3737{
3838
39- using Type = YulString ;
39+ using Type = YulName ;
4040
41- struct TypedName { langutil::DebugData::ConstPtr debugData; YulString name; Type type; };
41+ struct TypedName { langutil::DebugData::ConstPtr debugData; YulName name; Type type; };
4242using TypedNameList = std::vector<TypedName>;
4343
4444// / Literal number or string (up to 32 bytes)
@@ -70,7 +70,7 @@ class LiteralValue {
7070};
7171struct Literal { langutil::DebugData::ConstPtr debugData; LiteralKind kind; LiteralValue value; Type type; };
7272// / External / internal identifier or label reference
73- struct Identifier { langutil::DebugData::ConstPtr debugData; YulString name; };
73+ struct Identifier { langutil::DebugData::ConstPtr debugData; YulName name; };
7474// / Assignment ("x := mload(20:u256)", expects push-1-expression on the right hand
7575// / side and requires x to occupy exactly one stack slot.
7676// /
@@ -86,7 +86,7 @@ struct VariableDeclaration { langutil::DebugData::ConstPtr debugData; TypedNameL
8686// / Block that creates a scope (frees declared stack variables)
8787struct Block { langutil::DebugData::ConstPtr debugData; std::vector<Statement> statements; };
8888// / Function definition ("function f(a, b) -> (d, e) { ... }")
89- struct FunctionDefinition { langutil::DebugData::ConstPtr debugData; YulString name; TypedNameList parameters; TypedNameList returnVariables; Block body; };
89+ struct FunctionDefinition { langutil::DebugData::ConstPtr debugData; YulName name; TypedNameList parameters; TypedNameList returnVariables; Block body; };
9090// / Conditional execution without "else" part.
9191struct If { langutil::DebugData::ConstPtr debugData; std::unique_ptr<Expression> condition; Block body; };
9292// / Switch case or default case
0 commit comments