mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename Julia to Yul in variables
This commit is contained in:
parent
8fa8b2d08e
commit
e05a31b82b
@ -331,7 +331,7 @@ void CodeTransform::operator()(FunctionDefinition const& _function)
|
|||||||
CodeTransform(
|
CodeTransform(
|
||||||
m_assembly,
|
m_assembly,
|
||||||
m_info,
|
m_info,
|
||||||
m_julia,
|
m_yul,
|
||||||
m_evm15,
|
m_evm15,
|
||||||
m_identifierAccess,
|
m_identifierAccess,
|
||||||
m_useNamedLabelsForFunctions,
|
m_useNamedLabelsForFunctions,
|
||||||
|
@ -49,14 +49,14 @@ public:
|
|||||||
CodeTransform(
|
CodeTransform(
|
||||||
julia::AbstractAssembly& _assembly,
|
julia::AbstractAssembly& _assembly,
|
||||||
solidity::assembly::AsmAnalysisInfo& _analysisInfo,
|
solidity::assembly::AsmAnalysisInfo& _analysisInfo,
|
||||||
bool _julia = false,
|
bool _yul = false,
|
||||||
bool _evm15 = false,
|
bool _evm15 = false,
|
||||||
ExternalIdentifierAccess const& _identifierAccess = ExternalIdentifierAccess(),
|
ExternalIdentifierAccess const& _identifierAccess = ExternalIdentifierAccess(),
|
||||||
bool _useNamedLabelsForFunctions = false
|
bool _useNamedLabelsForFunctions = false
|
||||||
): CodeTransform(
|
): CodeTransform(
|
||||||
_assembly,
|
_assembly,
|
||||||
_analysisInfo,
|
_analysisInfo,
|
||||||
_julia,
|
_yul,
|
||||||
_evm15,
|
_evm15,
|
||||||
_identifierAccess,
|
_identifierAccess,
|
||||||
_useNamedLabelsForFunctions,
|
_useNamedLabelsForFunctions,
|
||||||
@ -78,7 +78,7 @@ protected:
|
|||||||
CodeTransform(
|
CodeTransform(
|
||||||
julia::AbstractAssembly& _assembly,
|
julia::AbstractAssembly& _assembly,
|
||||||
solidity::assembly::AsmAnalysisInfo& _analysisInfo,
|
solidity::assembly::AsmAnalysisInfo& _analysisInfo,
|
||||||
bool _julia,
|
bool _yul,
|
||||||
bool _evm15,
|
bool _evm15,
|
||||||
ExternalIdentifierAccess const& _identifierAccess,
|
ExternalIdentifierAccess const& _identifierAccess,
|
||||||
bool _useNamedLabelsForFunctions,
|
bool _useNamedLabelsForFunctions,
|
||||||
@ -87,7 +87,7 @@ protected:
|
|||||||
):
|
):
|
||||||
m_assembly(_assembly),
|
m_assembly(_assembly),
|
||||||
m_info(_analysisInfo),
|
m_info(_analysisInfo),
|
||||||
m_julia(_julia),
|
m_yul(_yul),
|
||||||
m_evm15(_evm15),
|
m_evm15(_evm15),
|
||||||
m_useNamedLabelsForFunctions(_useNamedLabelsForFunctions),
|
m_useNamedLabelsForFunctions(_useNamedLabelsForFunctions),
|
||||||
m_identifierAccess(_identifierAccess),
|
m_identifierAccess(_identifierAccess),
|
||||||
@ -142,7 +142,7 @@ private:
|
|||||||
julia::AbstractAssembly& m_assembly;
|
julia::AbstractAssembly& m_assembly;
|
||||||
solidity::assembly::AsmAnalysisInfo& m_info;
|
solidity::assembly::AsmAnalysisInfo& m_info;
|
||||||
solidity::assembly::Scope* m_scope = nullptr;
|
solidity::assembly::Scope* m_scope = nullptr;
|
||||||
bool m_julia = false;
|
bool m_yul = false;
|
||||||
bool m_evm15 = false;
|
bool m_evm15 = false;
|
||||||
bool m_useNamedLabelsForFunctions = false;
|
bool m_useNamedLabelsForFunctions = false;
|
||||||
ExternalIdentifierAccess m_identifierAccess;
|
ExternalIdentifierAccess m_identifierAccess;
|
||||||
|
@ -55,19 +55,19 @@ string inlinableFunctions(string const& _source)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
string inlineFunctions(string const& _source, bool _julia = true)
|
string inlineFunctions(string const& _source, bool _yul = true)
|
||||||
{
|
{
|
||||||
auto ast = disambiguate(_source, _julia);
|
auto ast = disambiguate(_source, _yul);
|
||||||
ExpressionInliner(ast).run();
|
ExpressionInliner(ast).run();
|
||||||
return assembly::AsmPrinter(_julia)(ast);
|
return assembly::AsmPrinter(_yul)(ast);
|
||||||
}
|
}
|
||||||
string fullInline(string const& _source, bool _julia = true)
|
string fullInline(string const& _source, bool _yul = true)
|
||||||
{
|
{
|
||||||
Block ast = disambiguate(_source, _julia);
|
Block ast = disambiguate(_source, _yul);
|
||||||
(FunctionHoister{})(ast);
|
(FunctionHoister{})(ast);
|
||||||
(FunctionGrouper{})(ast);\
|
(FunctionGrouper{})(ast);\
|
||||||
FullInliner(ast).run();
|
FullInliner(ast).run();
|
||||||
return assembly::AsmPrinter(_julia)(ast);
|
return assembly::AsmPrinter(_yul)(ast);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user