souffle
2.0.2-371-g6315b36
ast
transform
ComponentInstantiation.h
Go to the documentation of this file.
1
/*
2
* Souffle - A Datalog Compiler
3
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved
4
* Licensed under the Universal Permissive License v 1.0 as shown at:
5
* - https://opensource.org/licenses/UPL
6
* - <souffle root>/licenses/SOUFFLE-UPL.txt
7
*/
8
9
/************************************************************************
10
*
11
* @file ComponentInstantiation.h
12
*
13
***********************************************************************/
14
15
#pragma once
16
17
#include "
ast/TranslationUnit.h
"
18
#include "
ast/transform/Transformer.h
"
19
#include <string>
20
21
namespace
souffle::ast::transform
{
22
23
class
ComponentInstantiationTransformer :
public
Transformer {
24
public
:
25
std::string
getName
()
const override
{
26
return
"ComponentInstantiationTransformer"
;
27
}
28
29
ComponentInstantiationTransformer
*
clone
()
const override
{
30
return
new
ComponentInstantiationTransformer
();
31
}
32
33
private
:
34
bool
transform
(
TranslationUnit
& translationUnit)
override
;
35
};
36
37
}
// namespace souffle::ast::transform
TranslationUnit.h
souffle::ast::transform::ComponentInstantiationTransformer::getName
std::string getName() const override
Definition:
ComponentInstantiation.h:33
Transformer.h
souffle::ast::transform::ComponentInstantiationTransformer::clone
ComponentInstantiationTransformer * clone() const override
Definition:
ComponentInstantiation.h:37
souffle::ast::TranslationUnit
Translation unit class for the translation pipeline.
Definition:
TranslationUnit.h:51
souffle::ast::transform::ComponentInstantiationTransformer
Definition:
ComponentInstantiation.h:27
souffle::ast::transform
Definition:
Program.h:45
souffle::ast::transform::ComponentInstantiationTransformer::transform
bool transform(TranslationUnit &translationUnit) override
Definition:
ComponentInstantiation.cpp:438
Generated by
1.8.17