Skip to content

Commit 03cf317

Browse files
committed
Naming Classifier -> Type
1 parent ead8f24 commit 03cf317

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interop/lionweb.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export {STARLASU_LANGUAGE} from "./lionweb-starlasu-language";
3131

3232
export const ASTNode = STARLASU_LANGUAGE.entities.find(e => e.name == "ASTNode")! as Concept;
3333
export const PositionFeature = ASTNode.features.find(f => f.name == "position")! as Property;
34-
export const PositionClassifier = PositionFeature.type!;
35-
export const PointClassifier = STARLASU_LANGUAGE.entities.find(e => e.name == "Point")! as Datatype;
34+
export const PositionType = PositionFeature.type!;
35+
export const PointType = STARLASU_LANGUAGE.entities.find(e => e.name == "Point")! as Datatype;
3636

3737
export class TylasuWrapper implements LWNodeInterface {
3838
constructor(
@@ -278,8 +278,8 @@ export function deserializeToTylasuNodes(
278278
dependentNodes: LWNodeInterface[] = []
279279
): Node[] {
280280
const primitiveTypeDeserializer = new DefaultPrimitiveTypeDeserializer();
281-
primitiveTypeDeserializer.register(PointClassifier, deserializePoint);
282-
primitiveTypeDeserializer.register(PositionClassifier, (value) => {
281+
primitiveTypeDeserializer.register(PointType, deserializePoint);
282+
primitiveTypeDeserializer.register(PositionType, (value) => {
283283
const parts = value.split("to");
284284
return new Position(deserializePoint(parts[0].trim()), deserializePoint(parts[1].trim()));
285285
});

0 commit comments

Comments
 (0)