Commit graph

68 commits

Author SHA1 Message Date
Cameron Ross e37c4daa7e switch to a non-templated Dumper struct (#234)
switch to a non-templated Dumper struct
merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
2019-02-07 08:48:50 +01:00
Cameron Ross fff8cead76 use in contracts in more places (#231)
convert several asserts to in contracts
merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
2019-02-05 09:59:31 +01:00
Cameron Ross b63ea1aaae make node types into enums and clean up code using them (#225)
* make node types into enums and clean up code using them

* add some tests for anchorable
2019-01-28 02:56:00 +01:00
Cameron Ross 9d83c6a478 Remove tagcmp (#223)
Remove tagcmp
merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
2019-01-20 03:42:59 +01:00
Cameron Ross 7f913246ea Move custom types to Node (#213)
Move custom types to Node
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2019-01-15 08:37:50 +01:00
Basile Burg ee9f28338b fix #205 by removing useless assertions about Value and Node sizes 2018-12-11 15:11:44 +01:00
Cameron Ross 74c555d22e
use camelCasing for enum members 2018-08-26 21:49:14 -03:00
Cameron Ross 6e12cf9d64 a handful of DIP1000 fixes (#185)
a handful of DIP1000 fixes
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-07-18 09:14:42 +02:00
Basile Burg c0c1122a51 \s\body\do 2018-07-12 10:06:46 +02:00
Cameron Ross 26eb0913f1 Some YAMLObject simplification (#180)
* change YAMLObject to an interface

* move YAMLContainer constructor with other private member

* some YAMLContainer simplification
2018-07-06 08:35:27 +02:00
Cameron Ross 8e0ca41eb5 Replace stream-based dumping interface with an outputrange-based interface (#154)
Replace stream-based dumping interface with an outputrange-based interface
merged-on-behalf-of: Cameron Ross <elpenguino@gmail.com>
2018-06-22 05:59:10 +02:00
Basile Burg 09fe112ce6 partially address D-Scanner warnings in the whole project 2018-06-20 11:51:23 +02:00
Cameron Ross 1f556fdb70
clean up aliases 2018-06-13 05:17:20 -03:00
Cameron Ross 1e3f629265
clean up some opAssigns 2018-06-10 16:04:02 -03:00
Cameron Ross 5757869e9a Merge Node constructors (#146)
Merge Node constructors
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-10 10:28:58 +02:00
The Dlang Bot 28a61180bf
Merge pull request #148 from Herringway/expose-style-control
add ability to set Node style
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-10 09:26:14 +02:00
Cameron Ross e4087c23f1
add ability to set Node style 2018-06-10 03:52:12 -03:00
The Dlang Bot da4980afa3
Merge pull request #145 from Herringway/allowed-simplification
simplify Node.allowed
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-10 08:49:31 +02:00
The Dlang Bot 468c497465
Merge pull request #144 from Herringway/add-for-empty-node
allow uninitialized nodes to become sequence/mapping nodes
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-10 08:48:52 +02:00
Cameron Ross 11ecd3e8cc
Remove redundant package visibility declarations 2018-06-10 03:11:50 -03:00
Cameron Ross 157c2c005f
simplify Node.allowed 2018-06-10 02:51:51 -03:00
Cameron Ross a6cc4ed229
allow uninitialized nodes to become sequence/mapping nodes 2018-06-10 00:49:15 -03:00
Cameron Ross 75e2d69d76
hey unittests - SHUT UP! 2018-04-30 19:11:36 -03:00
Cameron Ross 5c801d6689
make Constructor wholly @safe 2018-04-30 04:24:31 -03:00
The Dlang Bot b44f96bd9f
Merge pull request #114 from Herringway/rawnode-removal
remove Node.rawNode and just use the constructor instead
merged-on-behalf-of: unknown
2018-04-25 07:31:38 +02:00
Cameron Ross 0bea335f57 massive speed increase for mapping construction 2018-04-25 07:30:27 +02:00
Cameron Ross 80ee4e5f95
temporary fix for another instance of issue 16528 2018-04-24 13:51:29 -03:00
Cameron Ross 9dd8bed9b6
remove Node.rawNode and just use the constructor instead 2018-04-22 15:44:16 -03:00
Cameron Ross 7ddea9db39
further refactoring and cleaning up of Node.get 2018-04-10 05:37:13 -03:00
Cameron Ross a35536fe59
fix single-file builds again. add a comment as a reminder. 2018-04-10 05:03:19 -03:00
Cameron Ross 6532251979
cleanups 2018-04-10 04:03:05 -03:00
Cameron Ross 12494a7a78
make Node.mappingKeys and Node.mappingValues const-friendly too 2018-04-10 03:45:51 -03:00
Cameron Ross fd50e2cefc
refactor portions of Node to allow const Nodes to be more useful 2018-04-10 03:36:09 -03:00
Cameron Ross e411fad92f
remove trailing whitespace 2018-04-09 22:57:14 -03:00
Cameron Ross 9d35b773b4
convert examples to doc'd unittests, fix some parameter errors, remove some redundancy 2018-04-09 21:14:51 -03:00
Cameron Ross 3ef3240a4c
remove misleading Error = ___Exception aliases 2018-04-09 19:34:45 -03:00
Cameron Ross 6088f0b632 major attribute fixing 2018-04-07 20:05:39 +02:00
Cameron Ross 683335aa3e remove zerostring (#94)
remove zerostring
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-03-01 04:20:43 +01:00
Michail Pevnev 6a381528a3 Added 'enforce' checks on ranges' emptiness. 2017-08-01 18:31:34 +03:00
Michail Pevnev c123e6afee Fixed new ranges not being random-access ranges.
Forgot to add 'length' property.
2017-08-01 14:37:28 +03:00
Michail Pevnev 2b6c417006 Added ranges-iterators to the Node struct.
Added methods: sequence, mapping (iterates over pairs), mappingKeys,
mappingValues.
2017-08-01 14:13:35 +03:00
Basile Burg a2c0c60884
fix issue #73 - Failure to compile when assigning a const(bool) to a node 2017-08-01 01:12:35 +02:00
Forb.Jok 22c432fb52 Make Node type identification properties public 2016-12-08 18:01:08 +01:00
ZombineDev bc1a2c2d0f Stop using implicit string literal concatenation
Implicit string litaral concatenation was deprecated with
this DMD PR: dlang/dmd/pull/6155.
2016-11-04 02:50:32 +02:00
Ferdinand Majerech 2f3d782c84 Fixed compilation with DMD 2.068
Had to use a lot of @trusted as std.variant.VariantN is again less safe.
Will need to change that back once it gets safer, or at least isolate
code using it so that half of Node API doesn't need to be @trusted.
2015-08-23 09:09:24 +02:00
Ferdinand Majerech 96f64eb221 Merge pull request #29 from soarqin/dmd2067_fix
Fixed compilation for dmd 2.067
2015-06-03 20:33:39 +02:00
Ferdinand Majerech 6d706dd3dc nothrow Node constructors where possible (at the moment) 2015-06-03 20:30:19 +02:00
Soar Qin bfd8654816 Fixed compilation for dmd 2.067 2015-03-17 14:08:40 +08:00
Ferdinand Majerech 05270e5f60 Doc fixes 2015-02-21 14:31:55 +01:00
Ferdinand Majerech 0f017646fc Reverted doc style due to DDoc issues. 2014-08-01 02:51:35 +02:00