| 9 | namespace ftg { |
| 10 | |
| 11 | Location::Location(Json::Value root) { |
| 12 | m_offset = root["Offset"].asUInt(); |
| 13 | m_length = root["Length"].asUInt(); |
| 14 | m_line = root["Line"].asUInt(); |
| 15 | } |
| 16 | |
| 17 | Location::Location(const clang::SourceManager &SM, const clang::Stmt &node) { |
| 18 | setLocation(SM, node.getSourceRange()); |