Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  SkSLExtension.h   Sprache: C

 
/*
 * Copyright 2016 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef SKSL_EXTENSION
#define SKSL_EXTENSION

#include "src/sksl/SkSLPosition.h"
#include "src/sksl/ir/SkSLIRNode.h"
#include "src/sksl/ir/SkSLProgramElement.h"

#include <memory>
#include <string>
#include <string_view>

namespace SkSL {

class Context;

/**
 * #extension <name> : enable
 */

class Extension final : public ProgramElement {
public:
    inline static constexpr Kind kIRNodeKind = Kind::kExtension;

    Extension(Position pos, std::string_view name)
            : INHERITED(pos, kIRNodeKind)
            , fName(name) {}

    std::string_view name() const {
        return fName;
    }

    // Reports errors via ErrorReporter. This may return null even if no error occurred;
    // in particular, if the behavior text is `disabled`, no ProgramElement is necessary.
    static std::unique_ptr<Extension> Convert(const Context& context,
                                              Position pos,
                                              std::string_view name,
                                              std::string_view behaviorText);

    // Asserts if an error is detected.
    static std::unique_ptr<Extension> Make(const Context& context,
                                           Position pos,
                                           std::string_view name);

    std::string description() const override {
        return "#extension " + std::string(this->name()) + " : enable";
    }

private:
    std::string_view fName;

    using INHERITED = ProgramElement;
};

}  // namespace SkSL

#endif

Messung V0.5
C=91 H=100 G=95

¤ Dauer der Verarbeitung: 0.20 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge