File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ export {STARLASU_LANGUAGE} from "./lionweb-starlasu-language";
31
31
32
32
export const ASTNode = STARLASU_LANGUAGE . entities . find ( e => e . name == "ASTNode" ) ! as Concept ;
33
33
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 ;
36
36
37
37
export class TylasuWrapper implements LWNodeInterface {
38
38
constructor (
@@ -278,8 +278,8 @@ export function deserializeToTylasuNodes(
278
278
dependentNodes : LWNodeInterface [ ] = [ ]
279
279
) : Node [ ] {
280
280
const primitiveTypeDeserializer = new DefaultPrimitiveTypeDeserializer ( ) ;
281
- primitiveTypeDeserializer . register ( PointClassifier , deserializePoint ) ;
282
- primitiveTypeDeserializer . register ( PositionClassifier , ( value ) => {
281
+ primitiveTypeDeserializer . register ( PointType , deserializePoint ) ;
282
+ primitiveTypeDeserializer . register ( PositionType , ( value ) => {
283
283
const parts = value . split ( "to" ) ;
284
284
return new Position ( deserializePoint ( parts [ 0 ] . trim ( ) ) , deserializePoint ( parts [ 1 ] . trim ( ) ) ) ;
285
285
} ) ;
You can’t perform that action at this time.
0 commit comments