Skip to content

Commit 9d32576

Browse files
committed
- cosmetic changes
- added Absyn.getClassName git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2885 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent de32c2c commit 9d32576

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

Compiler/Absyn.mo

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242

4343
package Absyn
4444
"
45-
file: Absyn.mo
46-
module: Absyn
45+
file: Absyn.mo
46+
package: Absyn
4747
description: Abstract syntax
4848
4949
RCS: $Id$
@@ -1937,5 +1937,22 @@ algorithm
19371937
end matchcontinue;
19381938
end functionArgsEqual;
19391939

1940+
public function getClassName "function getClassName
1941+
author: adrpo
1942+
gets the name of the class."
1943+
input Class inClass;
1944+
output String outName;
1945+
algorithm
1946+
outName:=
1947+
matchcontinue (inClass)
1948+
local
1949+
Ident n,filename;
1950+
Boolean p,f,e;
1951+
Restriction r;
1952+
ClassDef body;
1953+
case (CLASS(name = n,partial_ = p,final_ = f,encapsulated_ = e,restriction = r,body = body))
1954+
then n;
1955+
end matchcontinue;
1956+
end getClassFilename;
19401957

19411958
end Absyn;

0 commit comments

Comments
 (0)