git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] add csharp userdiff tests

From
Marius Ungureanu <marius.ungureanu@xamarin.com>
Date
Apr 27, 2014, 13:47 UTC
Message-ID
<3A0D05C9-C222-463E-BCD4-CD38F216E352@xamarin.com>
In-Reply-To
<535BFFEB.8040103@kdbg.org>
---
 t/t4018/csharp-constructor | 4 ++++
 t/t4018/csharp-destructor  | 4 ++++
 t/t4018/csharp-function    | 4 ++++
 t/t4018/csharp-member      | 4 ++++
 t/t4018/csharp-namespace   | 4 ++++
 t/t4018/csharp-operator    | 4 ++++
 t/t4018/csharp-property    | 4 ++++
 t/t4018/csharp-skip-call   | 5 +++++
 8 files changed, 33 insertions(+)
 create mode 100644 t/t4018/csharp-constructor
 create mode 100644 t/t4018/csharp-destructor
 create mode 100644 t/t4018/csharp-function
 create mode 100644 t/t4018/csharp-member
 create mode 100644 t/t4018/csharp-namespace
 create mode 100644 t/t4018/csharp-operator
 create mode 100644 t/t4018/csharp-property
 create mode 100644 t/t4018/csharp-skip-call
diff --git a/t/t4018/csharp-constructor b/t/t4018/csharp-constructor
new file mode 100644
index 0000000..a39cffb
--- /dev/null
+++ b/t/t4018/csharp-constructor
@@ -0,0 +1,4 @@
+MyClass(RIGHT)
+{
+	ChangeMe;
+}
diff --git a/t/t4018/csharp-destructor b/t/t4018/csharp-destructor
new file mode 100644
index 0000000..55106d9
--- /dev/null
+++ b/t/t4018/csharp-destructor
@@ -0,0 +1,4 @@
+~MyClass(RIGHT)
+{
+	ChangeMe;
+}
diff --git a/t/t4018/csharp-function b/t/t4018/csharp-function
new file mode 100644
index 0000000..a5d59a3
--- /dev/null
+++ b/t/t4018/csharp-function
@@ -0,0 +1,4 @@
+virtual DoStuff(RIGHT)
+{
+	ChangeMe;
+}
diff --git a/t/t4018/csharp-member b/t/t4018/csharp-member
new file mode 100644
index 0000000..4939d53
--- /dev/null
+++ b/t/t4018/csharp-member
@@ -0,0 +1,4 @@
+unsafe class RIGHT
+{
+	int ChangeMe;
+}
diff --git a/t/t4018/csharp-namespace b/t/t4018/csharp-namespace
new file mode 100644
index 0000000..6749980
--- /dev/null
+++ b/t/t4018/csharp-namespace
@@ -0,0 +1,4 @@
+namespace RIGHT
+{
+	ChangeMe;
+}
diff --git a/t/t4018/csharp-operator b/t/t4018/csharp-operator
new file mode 100644
index 0000000..5b00263
--- /dev/null
+++ b/t/t4018/csharp-operator
@@ -0,0 +1,4 @@
+A operator+(RIGHT)
+{
+	ChangeMe;
+}
diff --git a/t/t4018/csharp-property b/t/t4018/csharp-property
new file mode 100644
index 0000000..82d67fc
--- /dev/null
+++ b/t/t4018/csharp-property
@@ -0,0 +1,4 @@
+public virtual int RIGHT
+{
+	get { ChangeMe; }
+}
diff --git a/t/t4018/csharp-skip-call b/t/t4018/csharp-skip-call
new file mode 100644
index 0000000..e89d083
--- /dev/null
+++ b/t/t4018/csharp-skip-call
@@ -0,0 +1,5 @@
+virtual void RIGHT()
+{
+	call();
+	ChangeMe;
+}
-- 
1.8.4
Previous: Marius UngureanuNext: Johannes Sixt
Message 12 of 16 in “Updated C# userdiff patterns.”
  1. Updated C# userdiff patterns.Marius Ungureanu, Apr 25, 2014
  2. Johannes SixtApr 26, 2014
  3. Marius UngureanuApr 26, 2014
  4. Marius UngureanuApr 26, 2014
  5. Johannes SixtApr 26, 2014
  6. Marius UngureanuApr 26, 2014
  7. Johannes SixtApr 26, 2014
  8. Marius UngureanuApr 26, 2014
  9. Marius UngureanuApr 27, 2014
  10. Marius UngureanuApr 27, 2014
  11. Marius UngureanuApr 27, 2014
  12. Marius UngureanuApr 27, 2014
  13. Johannes SixtApr 27, 2014
  14. Marius UngureanuApr 27, 2014
  15. Johannes SixtApr 27, 2014
  16. Marius UngureanuApr 27, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.