2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-04 02:08:21 +00:00

Annotations

This commit is contained in:
2022-06-16 04:51:26 +03:00
parent 0f52fec828
commit 437121f223
10 changed files with 189 additions and 286 deletions

View File

@@ -6,7 +6,7 @@ import 'MemberType.dart';
import '../../Data/RepresentationType.dart';
class EventTemplate extends MemberTemplate {
final String? expansion;
final String? annotation;
final bool listenable;
final RepresentationType argumentType;
@@ -17,8 +17,8 @@ class EventTemplate extends MemberTemplate {
if (listenable) hdr |= 0x8;
if (expansion != null) {
var exp = DC.stringToBytes(expansion as String);
if (annotation != null) {
var exp = DC.stringToBytes(annotation as String);
hdr |= 0x50;
return (BinaryList()
..addUint8(hdr)
@@ -41,6 +41,6 @@ class EventTemplate extends MemberTemplate {
EventTemplate(TypeTemplate template, int index, String name, bool inherited,
this.argumentType,
[this.expansion = null, this.listenable = false])
[this.annotation = null, this.listenable = false])
: super(template, index, name, inherited) {}
}