[valadoc] libvaladoc: Move Api.NodeType to api/nodetype.vala
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] libvaladoc: Move Api.NodeType to api/nodetype.vala
- Date: Fri, 10 Aug 2012 21:53:12 +0000 (UTC)
commit 22e26f92848363f31fd7aa0a5de7f5dce8666bf9
Author: Florian Brosch <flo brosch gmail com>
Date: Fri Aug 10 23:41:56 2012 +0200
libvaladoc: Move Api.NodeType to api/nodetype.vala
src/libvaladoc/Makefile.am | 1 +
src/libvaladoc/api/node.vala | 93 -----------------------------
src/libvaladoc/api/nodetype.vala | 119 ++++++++++++++++++++++++++++++++++++++
3 files changed, 120 insertions(+), 93 deletions(-)
---
diff --git a/src/libvaladoc/Makefile.am b/src/libvaladoc/Makefile.am
index 7ec0b65..def3017 100644
--- a/src/libvaladoc/Makefile.am
+++ b/src/libvaladoc/Makefile.am
@@ -74,6 +74,7 @@ libvaladoc_la_VALASOURCES = \
api/methodbindingtype.vala \
api/namespace.vala \
api/node.vala \
+ api/nodetype.vala \
api/ownership.vala \
api/package.vala \
api/pointer.vala \
diff --git a/src/libvaladoc/api/node.vala b/src/libvaladoc/api/node.vala
index a2c856f..b2fb2ab 100644
--- a/src/libvaladoc/api/node.vala
+++ b/src/libvaladoc/api/node.vala
@@ -25,99 +25,6 @@ using Gee;
/**
- * Specifies the context of a node.
- */
-public enum Valadoc.Api.NodeType {
- CLASS,
- CONSTANT,
- CREATION_METHOD,
- DELEGATE,
- ENUM,
- ENUM_VALUE,
- ERROR_CODE,
- ERROR_DOMAIN,
- FIELD,
- FORMAL_PARAMETER,
- INTERFACE,
- METHOD,
- NAMESPACE,
- PACKAGE,
- PROPERTY,
- PROPERTY_ACCESSOR,
- SIGNAL,
- STATIC_METHOD,
- STRUCT,
- TYPE_PARAMETER;
-
- public string to_string () {
- switch (this) {
- case CLASS:
- return "CLASS";
-
- case CONSTANT:
- return "CONSTANT";
-
- case CREATION_METHOD:
- return "CREATION_METHOD";
-
- case DELEGATE:
- return "DELEGATE";
-
- case ENUM:
- return "ENUM";
-
- case ENUM_VALUE:
- return "ENUM_VALUE";
-
- case ERROR_CODE:
- return "ERROR_CODE";
-
- case ERROR_DOMAIN:
- return "ERROR_DOMAIN";
-
- case FIELD:
- return "FIELD";
-
- case FORMAL_PARAMETER:
- return "FORMAL_PARAMETER";
-
- case INTERFACE:
- return "INTERFACE";
-
- case METHOD:
- return "METHOD";
-
- case NAMESPACE:
- return "NAMESPACE";
-
- case PACKAGE:
- return "PACKAGE";
-
- case PROPERTY:
- return "PROPERTY";
-
- case PROPERTY_ACCESSOR:
- return "PROPERTY_ACCESSOR";
-
- case SIGNAL:
- return "SIGNAL";
-
- case STATIC_METHOD:
- return "STATIC_METHOD";
-
- case STRUCT:
- return "STRUCT";
-
- case TYPE_PARAMETER:
- return "TYPE_PARAMETER";
-
- default:
- assert_not_reached ();
- }
- }
-}
-
-/**
* Represents a node in the api tree.
*/
public abstract class Valadoc.Api.Node : Item, Browsable, Documentation, Comparable<Node> {
diff --git a/src/libvaladoc/api/nodetype.vala b/src/libvaladoc/api/nodetype.vala
new file mode 100644
index 0000000..1fbc22e
--- /dev/null
+++ b/src/libvaladoc/api/nodetype.vala
@@ -0,0 +1,119 @@
+/* node.vala
+ *
+ * Copyright (C) 2008-2009 Didier Villevalois
+ * Copyright (C) 2007-20012 Florian Brosch
+ *
+ * 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:
+ * Didier 'Ptitjes Villevalois <ptitjes free fr>
+ */
+
+using Gee;
+
+
+/**
+ * Specifies the context of a node.
+ */
+public enum Valadoc.Api.NodeType {
+ CLASS,
+ CONSTANT,
+ CREATION_METHOD,
+ DELEGATE,
+ ENUM,
+ ENUM_VALUE,
+ ERROR_CODE,
+ ERROR_DOMAIN,
+ FIELD,
+ FORMAL_PARAMETER,
+ INTERFACE,
+ METHOD,
+ NAMESPACE,
+ PACKAGE,
+ PROPERTY,
+ PROPERTY_ACCESSOR,
+ SIGNAL,
+ STATIC_METHOD,
+ STRUCT,
+ TYPE_PARAMETER;
+
+ public string to_string () {
+ switch (this) {
+ case CLASS:
+ return "CLASS";
+
+ case CONSTANT:
+ return "CONSTANT";
+
+ case CREATION_METHOD:
+ return "CREATION_METHOD";
+
+ case DELEGATE:
+ return "DELEGATE";
+
+ case ENUM:
+ return "ENUM";
+
+ case ENUM_VALUE:
+ return "ENUM_VALUE";
+
+ case ERROR_CODE:
+ return "ERROR_CODE";
+
+ case ERROR_DOMAIN:
+ return "ERROR_DOMAIN";
+
+ case FIELD:
+ return "FIELD";
+
+ case FORMAL_PARAMETER:
+ return "FORMAL_PARAMETER";
+
+ case INTERFACE:
+ return "INTERFACE";
+
+ case METHOD:
+ return "METHOD";
+
+ case NAMESPACE:
+ return "NAMESPACE";
+
+ case PACKAGE:
+ return "PACKAGE";
+
+ case PROPERTY:
+ return "PROPERTY";
+
+ case PROPERTY_ACCESSOR:
+ return "PROPERTY_ACCESSOR";
+
+ case SIGNAL:
+ return "SIGNAL";
+
+ case STATIC_METHOD:
+ return "STATIC_METHOD";
+
+ case STRUCT:
+ return "STRUCT";
+
+ case TYPE_PARAMETER:
+ return "TYPE_PARAMETER";
+
+ default:
+ assert_not_reached ();
+ }
+ }
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]