示例#1
0
        private bool TryFetchMemberTooltips(string scriptAssetPath, [CanBeNull] Type classTypeMustMatch, [NotNull] out Dictionary <string, string> tooltips)
        {
                        #if DEV_MODE && PI_ASSERTATIONS
            Debug.Assert(scriptAssetPath.EndsWith(".cs", StringComparison.OrdinalIgnoreCase), scriptAssetPath);
                        #endif

            tooltips = new Dictionary <string, string>();
            return(ScriptAssetDocumentationCommentParser.ParseComments(scriptAssetPath, tooltips, classTypeMustMatch));
        }
示例#2
0
        private Dictionary <string, string> FetchMemberTooltips(string scriptAssetPath, [CanBeNull] Type classTypeMustMatch)
        {
                        #if DEV_MODE && PI_ASSERTATIONS
            Debug.Assert(scriptAssetPath.IndexOf(':') != -1, scriptAssetPath);
            Debug.Assert(scriptAssetPath.EndsWith(".cs", StringComparison.OrdinalIgnoreCase), scriptAssetPath);
                        #endif

            var tooltips = new Dictionary <string, string>();
            ScriptAssetDocumentationCommentParser.ParseComments(scriptAssetPath, tooltips, classTypeMustMatch);
            return(tooltips);
        }