aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-01-24 13:45:43 -0500
committerGitHub <noreply@github.com>2019-01-24 13:45:43 -0500
commit4784d319d7a5a434068642eef40d0cdc57375558 (patch)
tree20d7efe826019624eae48dc2228b8b5b7f5d5211 /src/buffer.cc
parent9749446771ff9da897dc9fcb3b5793e1993b9f15 (diff)
downloadamber-4784d319d7a5a434068642eef40d0cdc57375558.tar.gz
[amberscript] Buffer parsering updates. (#244)
This CL updates the AmberScript parser to handle the changes to the BUFFER syntax.
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index e4736da..eeabf76 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -16,6 +16,8 @@
namespace amber {
+Buffer::Buffer() = default;
+
Buffer::Buffer(BufferType type) : buffer_type_(type) {}
Buffer::~Buffer() = default;
@@ -28,10 +30,14 @@ FormatBuffer* Buffer::AsFormatBuffer() {
return static_cast<FormatBuffer*>(this);
}
+DataBuffer::DataBuffer() = default;
+
DataBuffer::DataBuffer(BufferType type) : Buffer(type) {}
DataBuffer::~DataBuffer() = default;
+FormatBuffer::FormatBuffer() = default;
+
FormatBuffer::FormatBuffer(BufferType type) : Buffer(type) {}
FormatBuffer::~FormatBuffer() = default;