main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
463 bytes
|
Line | |
---|
1 | /* eslint-disable max-classes-per-file */
|
---|
2 |
|
---|
3 | export class Point {
|
---|
4 | static type = 'point';
|
---|
5 | type = Point.type;
|
---|
6 | row;
|
---|
7 | column;
|
---|
8 | char;
|
---|
9 | constructor({
|
---|
10 | row,
|
---|
11 | column,
|
---|
12 | char
|
---|
13 | }) {
|
---|
14 | this.row = row;
|
---|
15 | this.column = column;
|
---|
16 | this.char = char;
|
---|
17 | }
|
---|
18 | }
|
---|
19 | class Position {
|
---|
20 | static type = 'position';
|
---|
21 | type = Position.type;
|
---|
22 | start;
|
---|
23 | end;
|
---|
24 | constructor({
|
---|
25 | start,
|
---|
26 | end
|
---|
27 | }) {
|
---|
28 | this.start = start;
|
---|
29 | this.end = end;
|
---|
30 | }
|
---|
31 | }
|
---|
32 | export default Position; |
---|
Note:
See
TracBrowser
for help on using the repository browser.