mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-11 22:20:23 -06:00
Update codegen, make use of source location information
This commit is contained in:
@@ -113,7 +113,11 @@ namespace {
|
||||
}
|
||||
json << "],";
|
||||
json << fmt::format(replStr, "returnType", escapedJson(f.returnType));
|
||||
json << fmt::format(replStr2, "help", escapedJson(f.helpText));
|
||||
json << fmt::format(replStr, "help", escapedJson(f.helpText));
|
||||
json << fmt::format(
|
||||
"\"sourceLocation\": {{ \"file\": {}, \"line\": {} }}",
|
||||
escapedJson(f.sourceLocation.file), f.sourceLocation.line
|
||||
);
|
||||
json << "}";
|
||||
if (&f != &library.functions.back() || !library.documentations.empty()) {
|
||||
json << ",";
|
||||
|
||||
Reference in New Issue
Block a user