Sha256: 9e1c49f409fb5b499580ef6bf4e6f9e6b2cffb487f437a801051249f825443e3

Contents?: true

Size: 1.26 KB

Versions: 16

Compression:

Stored size: 1.26 KB

Contents

#ifndef SASS_CONTEXTUALIZE_H
#define SASS_CONTEXTUALIZE_H

#include "context.hpp"
#include "operation.hpp"
#include "environment.hpp"
#include "ast_fwd_decl.hpp"

namespace Sass {
  struct Backtrace;

  typedef Environment<AST_Node*> Env;

  class Contextualize : public Operation_CRTP<Selector*, Contextualize> {


  public:
    Context&   ctx;
    Env*       env;
    Backtrace* backtrace;
    Selector*  parent;
    Selector* placeholder;
    Selector* extender;

    Selector* fallback_impl(AST_Node* n);
    Contextualize(Context&, Env*, Backtrace*, Selector* placeholder = 0, Selector* extender = 0);
    virtual ~Contextualize();
    Contextualize* with(Selector*, Env*, Backtrace*, Selector* placeholder = 0, Selector* extender = 0);
    using Operation<Selector*>::operator();

    Selector* operator()(Selector_List*);
    Selector* operator()(Complex_Selector*);
    Selector* operator()(Compound_Selector*);
    Selector* operator()(Wrapped_Selector*);
    Selector* operator()(Pseudo_Selector*);
    Selector* operator()(Selector_Qualifier*);
    Selector* operator()(Type_Selector*);
    Selector* operator()(Selector_Placeholder*);
    Selector* operator()(Selector_Reference*);

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

#endif

Version data entries

16 entries across 16 versions & 2 rubygems

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