swiftlang/swift

[SR-340] Refactor SILParser::parseSILInstruction

Open

#42 962 ouverte le 22 déc. 2015

Voir sur GitHub
 (7 commentaires) (0 réactions) (1 assigné)Swift (10 719 forks)batch import
SILParsercompilergood first issuenfc

Métriques du dépôt

Stars
 (69 989 stars)
Métriques de merge PR
 (Merge moyen 8j 17h) (510 PRs mergées en 30 j)

Description

Previous ID SR-340
Radar None
Original Reporter @gottesmm
Type Bug
Status In Progress
Resolution
Votes 1
Component/s Compiler
Labels Bug, StarterBug
Assignee d066z (JIRA)
Priority Medium

md5: ee6df5ef735c9655c56ca6ce06200e7e

Issue Description:

parseSILInstruction is horrible and makes me cry every time I see it. It is a method that is ~1900 lines with a huge switch in it. We should refactor it into a visitor structure. In fact it is large enough that we should consider moving it into its own file if it is possible.

Guide contributeur