A stylesheet language written in TypeScript that compiles to CSS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

property.ts 312B

123456789101112131415
  1. import * as AST from '../ast';
  2. import Env, { EnvError } from '../env';
  3. import Token from '../token';
  4. export class Property {
  5. public name: Token;
  6. public constructor(name: Token) {
  7. this.name = name;
  8. }
  9. public compile(_env: Env, _opts: AST.Opts): string | EnvError {
  10. return this.name.value;
  11. }
  12. }