What I would otherwise forget
July 2017, swift:master
Typealias is missing from editoropen
. Fix plan:
SyntaxModel.h
- new SyntaxStructureKind.TypeAlias
It’s OK to add to the middle of this enum because it does not escape the
executable.SwiftLangSupport.cpp
- handle new kind in getUIDForSyntaxStructureKind()
,
map to existing KindDeclTypeAlias
.SyntaxModel.cpp
- add another else
to walkToDeclPre()
.Along the way:
swift/tools/swift-ide-test/swift-ide-test.cpp
another dependency
on SyntaxWalker. Just added the handler, nothing special.BodyLength/Offset
- go with nothing, like
var f = 2
.Should have added a test for swift-ide-test
change.
Sit back + leave to Marcelo - LOL.