mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-30 18:01:03 +02:00
Remove a few stale TODOs
This commit is contained in:
parent
b1a9c0bd6d
commit
121a77c66f
@ -109,7 +109,6 @@ func desugarFields(location ast.LocationRange, fields *ast.ObjectFields, objLeve
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Simplify asserts
|
// Simplify asserts
|
||||||
// TODO(dcunnin): this
|
|
||||||
for i := range *fields {
|
for i := range *fields {
|
||||||
field := &(*fields)[i]
|
field := &(*fields)[i]
|
||||||
if field.Kind != ast.ObjectAssert {
|
if field.Kind != ast.ObjectAssert {
|
||||||
@ -130,7 +129,6 @@ func desugarFields(location ast.LocationRange, fields *ast.ObjectFields, objLeve
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove methods
|
// Remove methods
|
||||||
// TODO(dcunnin): this
|
|
||||||
for i := range *fields {
|
for i := range *fields {
|
||||||
field := &((*fields)[i])
|
field := &((*fields)[i])
|
||||||
if !field.MethodSugar {
|
if !field.MethodSugar {
|
||||||
@ -403,7 +401,6 @@ func desugar(astPtr *ast.Node, objLevel int) (err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// TODO(dcunnin): Need to handle bopPercent, bopManifestUnequal, bopManifestEqual
|
|
||||||
|
|
||||||
case *ast.Conditional:
|
case *ast.Conditional:
|
||||||
err = desugar(&node.Cond, objLevel)
|
err = desugar(&node.Cond, objLevel)
|
||||||
@ -453,7 +450,7 @@ func desugar(astPtr *ast.Node, objLevel int) (err error) {
|
|||||||
}
|
}
|
||||||
if node.Id != nil {
|
if node.Id != nil {
|
||||||
if node.Index != nil {
|
if node.Index != nil {
|
||||||
panic("TODO")
|
panic(fmt.Sprintf("Node with both Id and Index: %#+v", node))
|
||||||
}
|
}
|
||||||
node.Index = makeStr(string(*node.Id))
|
node.Index = makeStr(string(*node.Id))
|
||||||
node.Id = nil
|
node.Id = nil
|
||||||
@ -585,6 +582,5 @@ func desugarFile(ast *ast.Node) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// TODO(dcunnin): wrap in std local
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -243,8 +243,6 @@ func (i *interpreter) getCurrentEnv(ast ast.Node) environment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *interpreter) evaluate(a ast.Node, context *TraceContext) (value, error) {
|
func (i *interpreter) evaluate(a ast.Node, context *TraceContext) (value, error) {
|
||||||
// TODO(dcunnin): All the other cases...
|
|
||||||
|
|
||||||
e := &evaluator{
|
e := &evaluator{
|
||||||
trace: &TraceElement{
|
trace: &TraceElement{
|
||||||
loc: a.Loc(),
|
loc: a.Loc(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user