MCPcopy Create free account
hub / github.com/argotorg/solidity / location

Method location

libsolidity/ast/ASTJsonExporter.cpp:1075–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073}
1074
1075std::string ASTJsonExporter::location(VariableDeclaration::Location _location)
1076{
1077 switch (_location)
1078 {
1079 case VariableDeclaration::Location::Unspecified:
1080 return "default";
1081 case VariableDeclaration::Location::Storage:
1082 return "storage";
1083 case VariableDeclaration::Location::Memory:
1084 return "memory";
1085 case VariableDeclaration::Location::CallData:
1086 return "calldata";
1087 case VariableDeclaration::Location::Transient:
1088 return "transient";
1089 }
1090 // To make the compiler happy
1091 return {};
1092}
1093
1094std::string ASTJsonExporter::contractKind(ContractKind _kind)
1095{

Callers 2

setJsonNodeMethod · 0.45
visitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected