Skip to content

Commit

Permalink
Update getModelInstanceIcon (#10245)
Browse files Browse the repository at this point in the history
- Change extends => elements to reflect the changes done to
  getModelInstance.
  • Loading branch information
perost committed Feb 22, 2023
1 parent fbe0da1 commit 05b22b1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Script/NFApi.mo
Expand Up @@ -1073,7 +1073,7 @@ algorithm
j := JSON.addElement(dumpJSONInstanceIconExtends(ext), j);
end for;

json := JSON.addPair("extends", j, json);
json := JSON.addPair("elements", j, json);
end if;

cmt := SCodeUtil.getElementComment(InstNode.definition(node));
Expand Down
Expand Up @@ -29,7 +29,7 @@ getModelInstanceIcon(M, prettyPrint=true);
// true
// "{
// \"name\": \"M\",
// \"extends\": [
// \"elements\": [
// {
// \"baseClass\": {
// \"name\": \"Icons.Example\",
Expand Down
Expand Up @@ -31,7 +31,7 @@ getModelInstanceIcon(M, prettyPrint=true);
// true
// "{
// \"name\": \"M\",
// \"extends\": [
// \"elements\": [
// {
// \"baseClass\": {
// \"name\": \"Icons.Example\",
Expand Down
4 changes: 2 additions & 2 deletions testsuite/openmodelica/instance-API/GetModelInstanceIcon4.mos
Expand Up @@ -38,11 +38,11 @@ getErrorString();
// true
// "{
// \"name\": \"M\",
// \"extends\": [
// \"elements\": [
// {
// \"baseClass\": {
// \"name\": \"Icons.Example\",
// \"extends\": [
// \"elements\": [
// {
// \"baseClass\": {
// \"name\": \"Icons.A\"
Expand Down

0 comments on commit 05b22b1

Please sign in to comment.