Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
23
Frontend-Learner/node_modules/css-tree/lib/syntax/node/Dimension.js
generated
vendored
Normal file
23
Frontend-Learner/node_modules/css-tree/lib/syntax/node/Dimension.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { Dimension } from '../../tokenizer/index.js';
|
||||
|
||||
export const name = 'Dimension';
|
||||
export const structure = {
|
||||
value: String,
|
||||
unit: String
|
||||
};
|
||||
|
||||
export function parse() {
|
||||
const start = this.tokenStart;
|
||||
const value = this.consumeNumber(Dimension);
|
||||
|
||||
return {
|
||||
type: 'Dimension',
|
||||
loc: this.getLocation(start, this.tokenStart),
|
||||
value,
|
||||
unit: this.substring(start + value.length, this.tokenStart)
|
||||
};
|
||||
}
|
||||
|
||||
export function generate(node) {
|
||||
this.token(Dimension, node.value + node.unit);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue