Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianoNaraku committed Apr 9, 2024
1 parent 4e636a1 commit 3566ad6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/logicWrapper/LModelElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3544,7 +3544,7 @@ export class LModel<Context extends LogicContext<DModel> = any, C extends Contex
return this._defaultGetterM2(c, key);
}
_defaultGetterM2(c: Context, key: string): any{
return Log.e("Could not find property " + key + " on MetaModel", {c, key, m2});
return Log.e("Could not find property " + key + " on MetaModel", {c, key});
}
_defaultGetterM1(c: Context, key: string): any{
// if m1.$m2classname"s" then --> this.instancesOf("m2classname")
Expand Down
2 changes: 2 additions & 0 deletions src/ocl/ocl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class Persona {

export class OCL{
public static evaluate<T extends GObject>(obj0: T, constructor: Constructor<T>, oclexp: string, typeused: Constructor[]=[], oclEngine?: OclEngine): OclResult {
windoww.oclEngine = OclEngine;
if (!oclEngine) {
oclEngine = OclEngine.create();
var oclResult = null;
Expand Down Expand Up @@ -49,6 +50,7 @@ export class OCL{
}

public static filter<T extends GObject>(keepIndex: boolean, returnType: 'ocl' | 'bool' | 'src', obj0: T[], oclexp: string, typeused: Constructor[]=[]) {
windoww.oclEngine = OclEngine;
var oclEngine = OclEngine.create();
var oclResult = null;
const typeregister: GObject = {};
Expand Down

0 comments on commit 3566ad6

Please sign in to comment.