Sha256: 5866cd94e2f84a5dab62d08d6f8b8336cab0b754abb3904ef59d563485faa49f

Contents?: true

Size: 882 Bytes

Versions: 17

Compression:

Stored size: 882 Bytes

Contents

#ifndef SASS_EXTEND_H
#define SASS_EXTEND_H

#include <map>
#include <set>
#include <vector>
#include <iostream>

#include "ast.hpp"
#include "operation.hpp"
#include "subset_map.hpp"

namespace Sass {
  using namespace std;

  class Context;

  typedef Subset_Map<string, pair<Complex_Selector*, Compound_Selector*> > ExtensionSubsetMap;

  class Extend : public Operation_CRTP<void, Extend> {

    Context&            ctx;
    ExtensionSubsetMap& subset_map;

    void fallback_impl(AST_Node* n) { };

  public:
    Extend(Context&, ExtensionSubsetMap&);
    virtual ~Extend() { }

    using Operation<void>::operator();

    void operator()(Block*);
    void operator()(Ruleset*);
    void operator()(Feature_Block*);
    void operator()(Media_Block*);
    void operator()(At_Rule*);

    template <typename U>
    void fallback(U x) { return fallback_impl(x); }
  };

}

#endif

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/extend.hpp
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/extend.hpp
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/src/libsass/extend.hpp
sassc-1.7.1 ext/libsass/extend.hpp
sassc-1.7.0 ext/libsass/extend.hpp
sassc-1.6.0 ext/libsass/extend.hpp
sassc-1.5.1 ext/libsass/extend.hpp
sassc-1.5.0 ext/libsass/extend.hpp
sassc-1.4.0 ext/libsass/extend.hpp
sassc-1.3.0 ext/libsass/extend.hpp
sassc-1.2.0 ext/libsass/extend.hpp
sassc-1.1.2 ext/libsass/extend.hpp
sassc-1.1.1 ext/libsass/extend.hpp
sassc-1.1.0 ext/libsass/extend.hpp
sassc-1.0.0 ext/libsass/extend.hpp
sassc-0.0.11 ext/libsass/extend.hpp
sassc-0.0.10 ext/libsass/extend.hpp