Skip to content

Commit ca3b0a8

Browse files
committed
Add type on AST node structs
1 parent 217734c commit ca3b0a8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ This project adheres to [Semantic Versioning](http://semver.org/) and
55
[Keep a CHANGELOG](http://keepachangelog.com).
66

77

8+
## Unreleased
9+
10+
### Added
11+
12+
- type `t` on all AST node structs
13+
14+
15+
[Compare v0.3.0...HEAD](https://github.com/marcelotto/panpipe/compare/v0.3.0...HEAD)
16+
17+
18+
819
## v0.3.0 - 2023-08-18
920

1021
This version upgrades to the latest Pandoc version 3.0 with API version 1.23.

lib/panpipe/ast/node.ex

+2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ defmodule Panpipe.AST.Node do
130130

131131
defstruct unquote(fields)
132132

133+
@type t :: %__MODULE__{}
134+
133135
def children(node)
134136
def children(%{children: children}), do: children
135137
def children(_), do: []

0 commit comments

Comments
 (0)