[vala/wip/ricotz/lsp: 2/4] vala: Add InvalidExpression
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/ricotz/lsp: 2/4] vala: Add InvalidExpression
- Date: Thu, 9 Jan 2020 18:05:21 +0000 (UTC)
commit 8c887401e0201261ab05b7f2bea86b4533cfe7f8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Jan 9 18:20:40 2020 +0100
vala: Add InvalidExpression
vala/Makefile.am | 1 +
vala/valainvalidexpression.vala | 32 ++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+)
---
diff --git a/vala/Makefile.am b/vala/Makefile.am
index 78e4c9390..42e67f9e8 100644
--- a/vala/Makefile.am
+++ b/vala/Makefile.am
@@ -103,6 +103,7 @@ libvala_la_VALASOURCES = \
valainterface.vala \
valainterfacetype.vala \
valainvalidtype.vala \
+ valainvalidexpression.vala \
valalambdaexpression.vala \
valaliteral.vala \
valalocalvariable.vala \
diff --git a/vala/valainvalidexpression.vala b/vala/valainvalidexpression.vala
new file mode 100644
index 000000000..89341673b
--- /dev/null
+++ b/vala/valainvalidexpression.vala
@@ -0,0 +1,32 @@
+/* valainvalidexpression.vala
+ *
+ * Copyright (C) 2020 Rico Tzschichholz
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author:
+ * Rico Tzschichholz <ricotz bubuntu com>
+ */
+
+using GLib;
+
+/**
+ * An invalid expression.
+ */
+public class Vala.InvalidExpression : Expression {
+ public InvalidExpression () {
+ error = true;
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]