diff --git a/autotests/folding/test.dart.fold b/autotests/folding/test.dart.fold new file mode 100644 index 0000000000000000000000000000000000000000..53fe65236d9c1fec618a97f1c6caf8468d408367 --- /dev/null +++ b/autotests/folding/test.dart.fold @@ -0,0 +1,22 @@ +/** + * print a number + * "helo" + * 'string' + */ + +int printNum(int anum) { + print("This is a $anum\n"); + print('This is a $anum\n \'world\''); + if (anum == 1) { + return 1; + } else { + return 2; + } +} + +// What are you doing? +void main() { + int nn = 10; + bool boolean = true; + printNum(nn); +} diff --git a/autotests/html/test.dart.dark.html b/autotests/html/test.dart.dark.html new file mode 100644 index 0000000000000000000000000000000000000000..5d14549f798badb329f9a5f2e276e0d17437a883 --- /dev/null +++ b/autotests/html/test.dart.dark.html @@ -0,0 +1,29 @@ + + + +test.dart + +
+/**
+ * print a number
+ * "helo"
+ * 'string'
+ */
+
+int printNum(int anum) {
+    print("This is a $anum\n");
+    print('This is a $anum\n \'world\'');
+    if (anum == 1) {
+        return 1;
+    } else {
+        return 2;
+    }
+}
+
+// What are you doing?
+void main() {
+    int nn = 10;
+    bool boolean = true;
+    printNum(nn);
+}
+
diff --git a/autotests/html/test.dart.html b/autotests/html/test.dart.html new file mode 100644 index 0000000000000000000000000000000000000000..29a13ba0188e76f9bb21812d30afc210a05048f9 --- /dev/null +++ b/autotests/html/test.dart.html @@ -0,0 +1,29 @@ + + + +test.dart + +
+/**
+ * print a number
+ * "helo"
+ * 'string'
+ */
+
+int printNum(int anum) {
+    print("This is a $anum\n");
+    print('This is a $anum\n \'world\'');
+    if (anum == 1) {
+        return 1;
+    } else {
+        return 2;
+    }
+}
+
+// What are you doing?
+void main() {
+    int nn = 10;
+    bool boolean = true;
+    printNum(nn);
+}
+
diff --git a/autotests/input/test.dart b/autotests/input/test.dart new file mode 100644 index 0000000000000000000000000000000000000000..cbdb986f1b4fd9c5d8e056e89254996ddfed5ff6 --- /dev/null +++ b/autotests/input/test.dart @@ -0,0 +1,22 @@ +/** + * print a number + * "helo" + * 'string' + */ + +int printNum(int anum) { + print("This is a $anum\n"); + print('This is a $anum\n \'world\''); + if (anum == 1) { + return 1; + } else { + return 2; + } +} + +// What are you doing? +void main() { + int nn = 10; + bool boolean = true; + printNum(nn); +} diff --git a/autotests/reference/test.dart.ref b/autotests/reference/test.dart.ref new file mode 100644 index 0000000000000000000000000000000000000000..beb964ca4d8081b7d07f4a98862412d05ab94b94 --- /dev/null +++ b/autotests/reference/test.dart.ref @@ -0,0 +1,22 @@ +/**
+ * print a number
+ * "helo"
+ * 'string'
+ */
+
+int printNum(int anum) {
+ print("This is a $anum\n");
+ print('This is a $anum\n \'world\'');
+ if (anum == 1) {
+ return 1;
+ } else {
+ return 2;
+ }
+}
+
+// What are you doing?
+void main() {
+ int nn = 10;
+ bool boolean = true;
+ printNum(nn);
+}
diff --git a/data/syntax/dart.xml b/data/syntax/dart.xml new file mode 100644 index 0000000000000000000000000000000000000000..667dd6e296e1e0b55dbcca27cb4f3f419f504c02 --- /dev/null +++ b/data/syntax/dart.xml @@ -0,0 +1,224 @@ + + + + + + + Function + abstract + as + assert + class + covariant + deferred + enum + export + extends + extension + external + factory + get + hide + implements + import + in + interface + is + library + mixin + new + on + operator + part + return + set + show + super + sync + this + typedef + with + yield + @pragma + @override + @deprecated + + + break + case + catch + continue + default + do + else + finally + for + if + rethrow + switch + throw + try + while + + + async + await + const + dynamic + late + final + static + + + Future + Iterable + List + Map + Never + Object + Set + Stream + String + bool + double + int + var + void + + + true + false + null + + + AbstractClassInstantiationError + ArgumentError + AssertionError + CastError + ConcurrentModificationError + CyclicInitializationError + Error + Exception + FallThroughError + FormatException + IndexError + IntegerDivisionByZeroException + JsonCyclicError + JsonUnsupportedObjectError + NoSuchMethodError + NullThrownError + OutOfMemoryError + RangeError + StackOverflowError + StateError + TypeError + UnimplementedError + UnsupportedError + + + this + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +