chore: remove old bootstrapping hack
This commit is contained in:
parent
fccb60fb69
commit
00793fcdd8
1 changed files with 3 additions and 9 deletions
|
|
@ -159,15 +159,9 @@ private def inductiveSyntaxToView (modifiers : Modifiers) (decl : Syntax) : Comm
|
|||
addDocString' ctorName ctorModifiers.docString?
|
||||
addAuxDeclarationRanges ctorName ctor ctor[2]
|
||||
return { ref := ctor, modifiers := ctorModifiers, declName := ctorName, binders := binders, type? := type? : CtorView }
|
||||
let mut computedFields := #[]
|
||||
let mut classes := #[]
|
||||
if decl.getNumArgs == 6 then
|
||||
-- TODO: remove after stage0 update
|
||||
classes ← getOptDerivingClasses decl[5]
|
||||
else
|
||||
computedFields ← (decl[5].getOptional?.map (·[1].getArgs) |>.getD #[]).mapM fun cf => withRef cf do
|
||||
return { ref := cf, modifiers := cf[0], fieldId := cf[1].getId, type := ⟨cf[3]⟩, matchAlts := ⟨cf[4]⟩ }
|
||||
classes ← getOptDerivingClasses decl[6]
|
||||
let computedFields ← (decl[5].getOptional?.map (·[1].getArgs) |>.getD #[]).mapM fun cf => withRef cf do
|
||||
return { ref := cf, modifiers := cf[0], fieldId := cf[1].getId, type := ⟨cf[3]⟩, matchAlts := ⟨cf[4]⟩ }
|
||||
let classes ← getOptDerivingClasses decl[6]
|
||||
return {
|
||||
ref := decl
|
||||
shortDeclName := name
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue