Emit CountAttributes during binding
authorFraser Waters <frassle@gmail.com>
Mon, 17 Jul 2017 09:39:21 +0000 (10:39 +0100)
committerFraser Waters <frassle@gmail.com>
Fri, 28 Jul 2017 05:16:48 +0000 (06:16 +0100)
commit34d765527402102549d8ab1717d346c126cdaedb
tree7d063142a071e9d0cd9b639b70972bd5ee862b04
parentac05b22b1159c0dd6a7994ad370503d4b594d9a2
Emit CountAttributes during binding

Adds a new parameter attribute CountAttribute that is emitted during
binding. CountAttribute is based on the "len" attribute in the
specifications. It describes what the expected count/length of the
parameter is.

During rewrite we remove these attributes.
src/Generator.Bind/CSharpSpecWriter.cs
src/Generator.Bind/XmlSpecReader.cs
src/Generator.Rewrite/Program.cs
src/OpenTK/CountAttribute.cs [new file with mode: 0644]
src/OpenTK/OpenTK.Android.csproj
src/OpenTK/OpenTK.csproj
src/OpenTK/OpenTK.iOS.csproj