OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of visitor; | 5 part of visitor; |
6 | 6 |
7 ///////////////////////////////////////////////////////////////////////// | 7 ///////////////////////////////////////////////////////////////////////// |
8 // CSS specific types: | 8 // CSS specific types: |
9 ///////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////// |
10 | 10 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 } | 413 } |
414 | 414 |
415 class FontFaceDirective extends Directive { | 415 class FontFaceDirective extends Directive { |
416 final DeclarationGroup _declarations; | 416 final DeclarationGroup _declarations; |
417 | 417 |
418 FontFaceDirective(this._declarations, Span span) : super(span); | 418 FontFaceDirective(this._declarations, Span span) : super(span); |
419 | 419 |
420 visit(VisitorBase visitor) => visitor.visitFontFaceDirective(this); | 420 visit(VisitorBase visitor) => visitor.visitFontFaceDirective(this); |
421 } | 421 } |
422 | 422 |
423 class IncludeDirective extends Directive { | |
424 final String _include; | |
425 final StyleSheet _stylesheet; | |
426 | |
427 IncludeDirective(this._include, this._stylesheet, Span span) : super(span); | |
428 | |
429 visit(VisitorBase visitor) => visitor.visitIncludeDirective(this); | |
430 | |
431 bool get isBuiltIn => false; | |
432 bool get isExtension => true; | |
433 | |
434 StyleSheet get styleSheet => _stylesheet; | |
435 } | |
436 | |
437 class StyletDirective extends Directive { | 423 class StyletDirective extends Directive { |
438 final String _dartClassName; | 424 final String _dartClassName; |
439 final List<RuleSet> _rulesets; | 425 final List<RuleSet> _rulesets; |
440 | 426 |
441 StyletDirective(this._dartClassName, this._rulesets, Span span) : super(span); | 427 StyletDirective(this._dartClassName, this._rulesets, Span span) : super(span); |
442 | 428 |
443 bool get isBuiltIn => false; | 429 bool get isBuiltIn => false; |
444 bool get isExtension => true; | 430 bool get isExtension => true; |
445 | 431 |
446 String get dartClassName => _dartClassName; | 432 String get dartClassName => _dartClassName; |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 factory PaddingExpression.merge(PaddingExpression x, PaddingExpression y) { | 957 factory PaddingExpression.merge(PaddingExpression x, PaddingExpression y) { |
972 return new PaddingExpression._merge(x, y, y.span); | 958 return new PaddingExpression._merge(x, y, y.span); |
973 } | 959 } |
974 | 960 |
975 PaddingExpression._merge(PaddingExpression x, PaddingExpression y, Span span) | 961 PaddingExpression._merge(PaddingExpression x, PaddingExpression y, Span span) |
976 : super(DartStyleExpression.paddingStyle, span, | 962 : super(DartStyleExpression.paddingStyle, span, |
977 new BoxEdge.merge(x.boxEdge, y.boxEdge)); | 963 new BoxEdge.merge(x.boxEdge, y.boxEdge)); |
978 | 964 |
979 visit(VisitorBase visitor) => visitor.visitPaddingExpression(this); | 965 visit(VisitorBase visitor) => visitor.visitPaddingExpression(this); |
980 } | 966 } |
OLD | NEW |