Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: lib/src/tree.dart

Issue 13154004: import support (removed @include) (Closed) Base URL: https://github.com/dart-lang/csslib.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/tokenkind.dart ('k') | lib/src/tree_printer.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « lib/src/tokenkind.dart ('k') | lib/src/tree_printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698