forked from postcss/postcss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment.es6
36 lines (28 loc) · 842 Bytes
/
comment.es6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import warnOnce from './warn-once';
import Node from './node';
export default class Comment extends Node {
type = 'comment';
constructor(defaults) {
super(defaults);
}
/* istanbul ignore next */
get left() {
warnOnce('Comment#left was deprecated. Use Comment#raws.left');
return this.raws.left;
}
/* istanbul ignore next */
set left(val) {
warnOnce('Comment#left was deprecated. Use Comment#raws.left');
this.raws.left = val;
}
/* istanbul ignore next */
get right() {
warnOnce('Comment#right was deprecated. Use Comment#raws.right');
return this.raws.right;
}
/* istanbul ignore next */
set right(val) {
warnOnce('Comment#right was deprecated. Use Comment#raws.right');
this.raws.right = val;
}
}