File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ class Parser {
715
715
};
716
716
717
717
// / Options that control the parsing of declarations.
718
- typedef OptionSet<ParseDeclFlags> ParseDeclOptions ;
718
+ using ParseDeclOptions = OptionSet<ParseDeclFlags>;
719
719
720
720
void delayParseFromBeginningToHere (ParserPosition BeginParserPosition,
721
721
ParseDeclOptions Flags);
Original file line number Diff line number Diff line change @@ -104,14 +104,14 @@ class PersistentParserState {
104
104
bool PerformConditionEvaluation = true ;
105
105
private:
106
106
ScopeInfo ScopeInfo;
107
- typedef llvm::DenseMap<AbstractFunctionDecl *,
108
- std::unique_ptr<FunctionBodyState>>
109
- DelayedFunctionBodiesTy ;
107
+ using DelayedFunctionBodiesTy =
108
+ llvm::DenseMap<AbstractFunctionDecl *,
109
+ std::unique_ptr<FunctionBodyState>> ;
110
110
DelayedFunctionBodiesTy DelayedFunctionBodies;
111
111
112
- typedef llvm::DenseMap<AbstractFunctionDecl *,
113
- std::unique_ptr<AccessorBodyState>>
114
- DelayedAccessorBodiesTy ;
112
+ using DelayedAccessorBodiesTy =
113
+ llvm::DenseMap<AbstractFunctionDecl *,
114
+ std::unique_ptr<AccessorBodyState>> ;
115
115
DelayedAccessorBodiesTy DelayedAccessorBodies;
116
116
117
117
// / \brief Parser sets this if it stopped parsing before the buffer ended.
Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ namespace swift {
33
33
class ScopeInfo {
34
34
friend class Scope ;
35
35
public:
36
- typedef std::pair<unsigned , ValueDecl*> ValueScopeEntry ;
37
-
38
- typedef TreeScopedHashTable<DeclName, ValueScopeEntry> ScopedHTTy ;
39
- typedef ScopedHTTy::ScopeTy ScopedHTScopeTy ;
40
- typedef ScopedHTTy::DetachedScopeTy ScopedHTDetachedScopeTy ;
36
+ using ValueScopeEntry = std::pair<unsigned , ValueDecl *> ;
37
+
38
+ using ScopedHTTy = TreeScopedHashTable<DeclName, ValueScopeEntry>;
39
+ using ScopedHTScopeTy = ScopedHTTy::ScopeTy;
40
+ using ScopedHTDetachedScopeTy = ScopedHTTy::DetachedScopeTy;
41
41
42
42
private:
43
43
ScopedHTTy HT;
You can’t perform that action at this time.
0 commit comments