mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This commit adds a new expression (AvailabilityQueryExpr) and a single kind of specification for when a block of code or function is available (VersionConstraintAvailabilitySpec). We may add more kinds of specifications in the future. At the moment, the AvailabilityQueryExpr allows only a single platform to be queried; I will add support for multiple platforms in a later commit. This commit contains just the added AST nodes; no parsing, type checking, etc. I’ve added assert(false && “Unimplemented”) for places where support for AvailabilityQueryExpr will need to be added later. Swift SVN r21760
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
//===--- AST.h - Umbrella Header for AST Library ----------------*- 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 includes the AST data structure headers.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SWIFT_AST_H
|
|
#define SWIFT_AST_H
|
|
|
|
#include "swift/AST/ASTContext.h"
|
|
#include "swift/AST/AvailabilitySpec.h"
|
|
#include "swift/AST/Builtins.h"
|
|
#include "swift/AST/Decl.h"
|
|
#include "swift/AST/Expr.h"
|
|
#include "swift/AST/ExprHandle.h"
|
|
#include "swift/AST/Initializer.h"
|
|
#include "swift/AST/Module.h"
|
|
#include "swift/AST/Pattern.h"
|
|
#include "swift/AST/Stmt.h"
|
|
#include "swift/AST/Types.h"
|
|
#include "swift/AST/TypeRepr.h"
|
|
|
|
#endif
|