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

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

Issue 1899133010: Fix two checked mode bugs introduced by 0.13.0. (Closed) Base URL: https://github.com/dart-lang/csslib.git@master
Patch Set: Created 4 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/parser.dart ('k') | pubspec.yaml » ('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 csslib.visitor; 5 part of csslib.visitor;
6 6
7 ///////////////////////////////////////////////////////////////////////// 7 /////////////////////////////////////////////////////////////////////////
8 // CSS specific types: 8 // CSS specific types:
9 ///////////////////////////////////////////////////////////////////////// 9 /////////////////////////////////////////////////////////////////////////
10 10
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 return new MixinDefinition(name, cloneDefinedArgs, varArgs, span); 689 return new MixinDefinition(name, cloneDefinedArgs, varArgs, span);
690 } 690 }
691 691
692 visit(VisitorBase visitor) => visitor.visitMixinDefinition(this); 692 visit(VisitorBase visitor) => visitor.visitMixinDefinition(this);
693 } 693 }
694 694
695 /** Support a Sass @mixin. See http://sass-lang.com for description. */ 695 /** Support a Sass @mixin. See http://sass-lang.com for description. */
696 class MixinRulesetDirective extends MixinDefinition { 696 class MixinRulesetDirective extends MixinDefinition {
697 final List<TreeNode> rulesets; 697 final List<TreeNode> rulesets;
698 698
699 MixinRulesetDirective(String name, List<VarDefinition> args, 699 MixinRulesetDirective(String name, List<TreeNode> args,
700 bool varArgs, this.rulesets, SourceSpan span) 700 bool varArgs, this.rulesets, SourceSpan span)
701 : super(name, args, varArgs, span); 701 : super(name, args, varArgs, span);
702 702
703 MixinRulesetDirective clone() { 703 MixinRulesetDirective clone() {
704 var clonedArgs = <VarDefinition>[]; 704 var clonedArgs = <VarDefinition>[];
705 for (var arg in definedArgs) { 705 for (var arg in definedArgs) {
706 clonedArgs.add(arg.clone()); 706 clonedArgs.add(arg.clone());
707 } 707 }
708 var clonedRulesets = <TreeNode>[]; 708 var clonedRulesets = <TreeNode>[];
709 for (var ruleset in rulesets) { 709 for (var ruleset in rulesets) {
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 1432
1433 PaddingExpression._merge( 1433 PaddingExpression._merge(
1434 PaddingExpression x, PaddingExpression y, SourceSpan span) 1434 PaddingExpression x, PaddingExpression y, SourceSpan span)
1435 : super(DartStyleExpression.paddingStyle, span, 1435 : super(DartStyleExpression.paddingStyle, span,
1436 new BoxEdge.merge(x.box, y.box)); 1436 new BoxEdge.merge(x.box, y.box));
1437 1437
1438 PaddingExpression clone() => new PaddingExpression(span, 1438 PaddingExpression clone() => new PaddingExpression(span,
1439 top: box.top, right: box.right, bottom: box.bottom, left: box.left); 1439 top: box.top, right: box.right, bottom: box.bottom, left: box.left);
1440 visit(VisitorBase visitor) => visitor.visitPaddingExpression(this); 1440 visit(VisitorBase visitor) => visitor.visitPaddingExpression(this);
1441 } 1441 }
OLDNEW
« no previous file with comments | « lib/parser.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698