From c6e2873605c33230210af2738f59b869ffe2141c Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Mon, 22 Oct 2018 19:27:41 +0200 Subject: Fix msvc warnings in mono module - `modules\mono\csharp_script.cpp(576): warning C4099: 'CSharpScriptDepSort': type name first seen using 'class' now seen using 'struct'` - `modules\mono\signal_awaiter_utils.cpp(144): warning C4003: not enough actual parameters for macro 'ERR_FAIL_V'` - `modules\mono\editor\net_solution.cpp(101): warning C4129: '%': unrecognized character escape sequence` - (several) `modules\mono\glue\cs_compressed.gen.h(222): warning C4129: 'E': unrecognized character escape sequence` --- modules/mono/csharp_script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/mono/csharp_script.h') diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h index 8b0a095890..2636ffbcc8 100644 --- a/modules/mono/csharp_script.h +++ b/modules/mono/csharp_script.h @@ -67,7 +67,7 @@ class CSharpScript : public Script { friend class CSharpInstance; friend class CSharpLanguage; - friend class CSharpScriptDepSort; + friend struct CSharpScriptDepSort; bool tool; bool valid; -- cgit v1.2.3 From 1aac95a7375e58bacade69ed12f9dade484a03a8 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Mon, 22 Oct 2018 19:43:19 +0200 Subject: Parse C# script namespace and class - Added a very simple parser that can extract the namespace and class name of a C# script. --- modules/mono/csharp_script.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/mono/csharp_script.h') diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h index 2636ffbcc8..fc604df2a0 100644 --- a/modules/mono/csharp_script.h +++ b/modules/mono/csharp_script.h @@ -275,6 +275,8 @@ class CSharpLanguage : public ScriptLanguage { int lang_idx; + Dictionary scripts_metadata; + public: StringNameCache string_names; @@ -295,6 +297,10 @@ public: void reload_assemblies_if_needed(bool p_soft_reload); #endif + void project_assembly_loaded(); + + _FORCE_INLINE_ const Dictionary &get_scripts_metadata() { return scripts_metadata; } + virtual String get_name() const; /* LANGUAGE FUNCTIONS */ -- cgit v1.2.3