visitFtn method

  1. @override
Function visitFtn(
  1. Node node
)
override

func visitor.visit distribuitor

Implementation

@override
Function visitFtn(Node node) {
  if (node is Media) return visitMedia;
  if (node is AtRule) return visitAtRule;
  if (node is MixinDefinition) return visitMixinDefinition;
  if (node is Declaration) return visitDeclaration;
  if (node is Ruleset) return visitRuleset;
  if (node is Selector) return visitSelector;

  return null;
}