(p *ASTNode)
| 1686 | } |
| 1687 | |
| 1688 | func (d *decoder) astNode(p *ASTNode) ast.Node { |
| 1689 | if p == nil { |
| 1690 | return nil |
| 1691 | } |
| 1692 | switch p := protoutil.OneOf(p).(type) { |
| 1693 | case *ASTNode_Abort: |
| 1694 | return d.astAbort(p.Abort) |
| 1695 | case *ASTNode_Annotation: |
| 1696 | return d.astAnnotation(p.Annotation) |
| 1697 | case *ASTNode_Api: |
| 1698 | return d.astAPI(p.Api) |
| 1699 | case *ASTNode_Assign: |
| 1700 | return d.astAssign(p.Assign) |
| 1701 | case *ASTNode_BinaryOp: |
| 1702 | return d.astBinaryOp(p.BinaryOp) |
| 1703 | case *ASTNode_Block: |
| 1704 | return d.astBlock(p.Block) |
| 1705 | case *ASTNode_Bool: |
| 1706 | return d.astBool(p.Bool) |
| 1707 | case *ASTNode_Branch: |
| 1708 | return d.astBranch(p.Branch) |
| 1709 | case *ASTNode_Call: |
| 1710 | return d.astCall(p.Call) |
| 1711 | case *ASTNode_Case: |
| 1712 | return d.astCase(p.Case) |
| 1713 | case *ASTNode_Class: |
| 1714 | return d.astClass(p.Class) |
| 1715 | case *ASTNode_Clear: |
| 1716 | return d.astClear(p.Clear) |
| 1717 | case *ASTNode_DeclareLocal: |
| 1718 | return d.astDeclareLocal(p.DeclareLocal) |
| 1719 | case *ASTNode_Default: |
| 1720 | return d.astDefault(p.Default) |
| 1721 | case *ASTNode_Definition: |
| 1722 | return d.astDefinition(p.Definition) |
| 1723 | case *ASTNode_Delete: |
| 1724 | return d.astDelete(p.Delete) |
| 1725 | case *ASTNode_Enum: |
| 1726 | return d.astEnum(p.Enum) |
| 1727 | case *ASTNode_EnumEntry: |
| 1728 | return d.astEnumEntry(p.EnumEntry) |
| 1729 | case *ASTNode_Fence: |
| 1730 | return d.astFence(p.Fence) |
| 1731 | case *ASTNode_Field: |
| 1732 | return d.astField(p.Field) |
| 1733 | case *ASTNode_Function: |
| 1734 | return d.astFunction(p.Function) |
| 1735 | case *ASTNode_Generic: |
| 1736 | return d.astGeneric(p.Generic) |
| 1737 | case *ASTNode_Group: |
| 1738 | return d.astGroup(p.Group) |
| 1739 | case *ASTNode_Identifier: |
| 1740 | return d.astIdentifier(p.Identifier) |
| 1741 | case *ASTNode_Import: |
| 1742 | return d.astImport(p.Import) |
| 1743 | case *ASTNode_Index: |
| 1744 | return d.astIndex(p.Index) |
| 1745 | case *ASTNode_IndexedType: |
no test coverage detected