Files
swift-mirror/include/swift/AST/Substitution.h
2013-08-09 20:05:02 +00:00

38 lines
1.1 KiB
C++

//===--- Substitution.h - Swift Generic Substitution ASTs -------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// This file defines the Substitution class.
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_AST_SUBSTITUTION_H
#define SWIFT_AST_SUBSTITUTION_H
#include "swift/AST/Type.h"
#include "llvm/ADT/ArrayRef.h"
namespace swift {
class ArchetypeType;
class ProtocolConformance;
/// Substitution - A substitution into a generic specialization.
class Substitution {
public:
ArchetypeType *Archetype;
Type Replacement;
ArrayRef<ProtocolConformance *> Conformance;
};
} // end namespace swift
#endif