mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stub out the Sema object.
Swift SVN r21
This commit is contained in:
35
include/swift/Sema/Sema.h
Normal file
35
include/swift/Sema/Sema.h
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
//===--- Sema.h - Swift Language Semantic Analysis --------------*- 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 Sema interface which implement hooks invoked by the
|
||||||
|
// parser to build the AST.
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
#ifndef SWIFT_SEMA_H
|
||||||
|
#define SWIFT_SEMA_H
|
||||||
|
|
||||||
|
namespace llvm {
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace swift {
|
||||||
|
class Sema {
|
||||||
|
|
||||||
|
Sema(const Sema&); // DO NOT IMPLEMENT
|
||||||
|
void operator=(const Sema&); // DO NOT IMPLEMENT
|
||||||
|
public:
|
||||||
|
Sema();
|
||||||
|
};
|
||||||
|
|
||||||
|
} // end namespace swift
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
##===----------------------------------------------------------------------===##
|
##===----------------------------------------------------------------------===##
|
||||||
SWIFT_LEVEL := ..
|
SWIFT_LEVEL := ..
|
||||||
|
|
||||||
PARALLEL_DIRS = Parse
|
PARALLEL_DIRS = Parse Sema
|
||||||
|
|
||||||
include $(SWIFT_LEVEL)/Makefile
|
include $(SWIFT_LEVEL)/Makefile
|
||||||
|
|
||||||
|
|||||||
21
lib/Sema/Sema.cpp
Normal file
21
lib/Sema/Sema.cpp
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
//===--- Sema.cpp - Swift Language Semantic Analysis ----------------------===//
|
||||||
|
//
|
||||||
|
// 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 implements semantic analysis for Swift.
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
#include "swift/Sema/Sema.h"
|
||||||
|
using namespace swift;
|
||||||
|
|
||||||
|
Sema::Sema() {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user