summaryrefslogtreecommitdiff
path: root/src/cli/runtime/InstanceMemberSymbol.cs
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-09-25 18:46:24 +0000
committerRich Hickey <richhickey@gmail.com>2006-09-25 18:46:24 +0000
commit86fcd18f4ef4d0cfc17df28649ae10b5060f2432 (patch)
tree80c3df20f1ea328545f94eefb4104c66e53612a8 /src/cli/runtime/InstanceMemberSymbol.cs
parent51c468f878a842bc6e469c32acbc58543448d081 (diff)
reorg of host symbols
Diffstat (limited to 'src/cli/runtime/InstanceMemberSymbol.cs')
-rw-r--r--src/cli/runtime/InstanceMemberSymbol.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/cli/runtime/InstanceMemberSymbol.cs b/src/cli/runtime/InstanceMemberSymbol.cs
new file mode 100644
index 00000000..35827e7b
--- /dev/null
+++ b/src/cli/runtime/InstanceMemberSymbol.cs
@@ -0,0 +1,30 @@
+/**
+ * Copyright (c) Rich Hickey. All rights reserved.
+ * The use and distribution terms for this software are covered by the
+ * Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
+ * which can be found in the file CPL.TXT at the root of this distribution.
+ * By using this software in any fashion, you are agreeing to be bound by
+ * the terms of this license.
+ * You must not remove this notice, or any other, from this software.
+ **/
+
+using System;
+
+namespace clojure.lang
+{
+
+public class InstanceMemberSymbol :HostSymbol {
+readonly public String className;
+readonly public String memberName;
+
+public InstanceMemberSymbol(String name) : base(name) {
+int lastDot = name.LastIndexOf('.');
+if (lastDot == 0)
+ this.className = null;
+else
+ this.className = name.Substring(1, lastDot-1);
+this.memberName = name.Substring(lastDot + 1);
+}
+}
+
+}