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(
|
||||
m_assembly,
|
||||
m_info,
|
||||
m_julia,
|
||||
m_yul,
|
||||
m_evm15,
|
||||
m_identifierAccess,
|
||||
m_useNamedLabelsForFunctions,
|
||||
|
@ -49,14 +49,14 @@ public:
|
||||
CodeTransform(
|
||||
julia::AbstractAssembly& _assembly,
|
||||
solidity::assembly::AsmAnalysisInfo& _analysisInfo,
|
||||
bool _julia = false,
|
||||
bool _yul = false,
|
||||
bool _evm15 = false,
|
||||
ExternalIdentifierAccess const& _identifierAccess = ExternalIdentifierAccess(),
|
||||
bool _useNamedLabelsForFunctions = false
|
||||
): CodeTransform(
|
||||
_assembly,
|
||||
_analysisInfo,
|
||||
_julia,
|
||||
_yul,
|
||||
_evm15,
|
||||
_identifierAccess,
|
||||
_useNamedLabelsForFunctions,
|
||||
@ -78,7 +78,7 @@ protected:
|
||||
CodeTransform(
|
||||
julia::AbstractAssembly& _assembly,
|
||||
solidity::assembly::AsmAnalysisInfo& _analysisInfo,
|
||||
bool _julia,
|
||||
bool _yul,
|
||||
bool _evm15,
|
||||
ExternalIdentifierAccess const& _identifierAccess,
|
||||
bool _useNamedLabelsForFunctions,
|
||||
@ -87,7 +87,7 @@ protected:
|
||||
):
|
||||
m_assembly(_assembly),
|
||||
m_info(_analysisInfo),
|
||||
m_julia(_julia),
|
||||
m_yul(_yul),
|
||||
m_evm15(_evm15),
|
||||
m_useNamedLabelsForFunctions(_useNamedLabelsForFunctions),
|
||||
m_identifierAccess(_identifierAccess),
|
||||
@ -142,7 +142,7 @@ private:
|
||||
julia::AbstractAssembly& m_assembly;
|
||||
solidity::assembly::AsmAnalysisInfo& m_info;
|
||||
solidity::assembly::Scope* m_scope = nullptr;
|
||||
bool m_julia = false;
|
||||
bool m_yul = false;
|
||||
bool m_evm15 = false;
|
||||
bool m_useNamedLabelsForFunctions = false;
|
||||
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();
|
||||
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);
|
||||
(FunctionGrouper{})(ast);\
|
||||
FullInliner(ast).run();
|
||||
return assembly::AsmPrinter(_julia)(ast);
|
||||
return assembly::AsmPrinter(_yul)(ast);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user