added grammar

This commit is contained in:
Christian Klemm
2019-10-04 21:49:02 +02:00
parent 96735dd543
commit 912e850db4
5 changed files with 18 additions and 8 deletions

View File

@@ -44,6 +44,10 @@ export const addRelation = function(relation) {
relations.push(relation);
};
export const addAnnotation = function(className, annotation) {
classes[className].annotations.push(annotation);
};
export const addMember = function(className, member) {
const theClass = classes[className];
if (typeof member === 'string') {
@@ -86,6 +90,7 @@ export default {
clear,
getClass,
getClasses,
addAnnotation,
getRelations,
addRelation,
addMember,