Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
28
Frontend-Learner/node_modules/css-tree/lib/syntax/node/Layer.js
generated
vendored
Normal file
28
Frontend-Learner/node_modules/css-tree/lib/syntax/node/Layer.js
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { Ident, Delim } from '../../tokenizer/index.js';
|
||||
|
||||
const FULLSTOP = 0x002E; // U+002E FULL STOP (.)
|
||||
|
||||
export const name = 'Layer';
|
||||
export const structure = {
|
||||
name: String
|
||||
};
|
||||
|
||||
export function parse() {
|
||||
let tokenStart = this.tokenStart;
|
||||
let name = this.consume(Ident);
|
||||
|
||||
while (this.isDelim(FULLSTOP)) {
|
||||
this.eat(Delim);
|
||||
name += '.' + this.consume(Ident);
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'Layer',
|
||||
loc: this.getLocation(tokenStart, this.tokenStart),
|
||||
name
|
||||
};
|
||||
}
|
||||
|
||||
export function generate(node) {
|
||||
this.tokenize(node.name);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue