Skip to content

Commit 4e21041

Browse files
committed
[AST] Add front() and back() methods to ParameterList
1 parent 555f8da commit 4e21041

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/swift/AST/ParameterList.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ class alignas(ParamDecl *) ParameterList final :
7676
iterator end() { return getArray().end(); }
7777
const_iterator begin() const { return getArray().begin(); }
7878
const_iterator end() const { return getArray().end(); }
79-
79+
80+
ParamDecl *front() const { return getArray().front(); }
81+
ParamDecl *back() const { return getArray().back(); }
82+
8083
MutableArrayRef<ParamDecl*> getArray() {
8184
return {getTrailingObjects<ParamDecl*>(), numParameters};
8285
}

0 commit comments

Comments
 (0)