protected override NormalizedCompilerStatus NormalizedStatusFor(Match match) { string arg_29_1 = "0018"; Regex arg_29_2 = UnityScriptCompilerOutputParser.sUnknownTypeOrNamespace; if (UnityScriptCompilerOutputParser.< > f__mg$cache0 == null) { UnityScriptCompilerOutputParser.< > f__mg$cache0 = new Func <Match, Regex, NormalizedCompilerStatus>(CompilerOutputParserBase.NormalizeSimpleUnknownTypeOfNamespaceError); } NormalizedCompilerStatus normalizedCompilerStatus = CompilerOutputParserBase.TryNormalizeCompilerStatus(match, arg_29_1, arg_29_2, UnityScriptCompilerOutputParser.< > f__mg$cache0); NormalizedCompilerStatus result; if (normalizedCompilerStatus.code != NormalizedCompilerStatusCode.NotNormalized) { result = normalizedCompilerStatus; } else { string arg_6A_1 = "0005"; Regex arg_6A_2 = UnityScriptCompilerOutputParser.sUnknownTypeOrNamespace; if (UnityScriptCompilerOutputParser.< > f__mg$cache1 == null) { UnityScriptCompilerOutputParser.< > f__mg$cache1 = new Func <Match, Regex, NormalizedCompilerStatus>(CompilerOutputParserBase.NormalizeSimpleUnknownTypeOfNamespaceError); } result = CompilerOutputParserBase.TryNormalizeCompilerStatus(match, arg_6A_1, arg_6A_2, UnityScriptCompilerOutputParser.< > f__mg$cache1); } return(result); }
public CompilerMessage(CompilerMessage cm) { message = cm.message; file = cm.file; line = cm.line; column = cm.column; type = cm.type; normalizedStatus = cm.normalizedStatus; }
protected override NormalizedCompilerStatus NormalizedStatusFor(Match match) { string arg_29_1 = "CS0117"; Regex arg_29_2 = MonoCSharpCompilerOutputParser.sMissingMember; if (MonoCSharpCompilerOutputParser.< > f__mg$cache0 == null) { MonoCSharpCompilerOutputParser.< > f__mg$cache0 = new Func <Match, Regex, NormalizedCompilerStatus>(CompilerOutputParserBase.NormalizeMemberNotFoundError); } NormalizedCompilerStatus normalizedCompilerStatus = CompilerOutputParserBase.TryNormalizeCompilerStatus(match, arg_29_1, arg_29_2, MonoCSharpCompilerOutputParser.< > f__mg$cache0); NormalizedCompilerStatus result; if (normalizedCompilerStatus.code != NormalizedCompilerStatusCode.NotNormalized) { result = normalizedCompilerStatus; } else { string arg_6A_1 = "CS0246"; Regex arg_6A_2 = MonoCSharpCompilerOutputParser.sUnknownTypeOrNamespace; if (MonoCSharpCompilerOutputParser.< > f__mg$cache1 == null) { MonoCSharpCompilerOutputParser.< > f__mg$cache1 = new Func <Match, Regex, NormalizedCompilerStatus>(CompilerOutputParserBase.NormalizeSimpleUnknownTypeOfNamespaceError); } normalizedCompilerStatus = CompilerOutputParserBase.TryNormalizeCompilerStatus(match, arg_6A_1, arg_6A_2, MonoCSharpCompilerOutputParser.< > f__mg$cache1); if (normalizedCompilerStatus.code != NormalizedCompilerStatusCode.NotNormalized) { result = normalizedCompilerStatus; } else { string arg_AB_1 = "CS0234"; Regex arg_AB_2 = MonoCSharpCompilerOutputParser.sMissingType; if (MonoCSharpCompilerOutputParser.< > f__mg$cache2 == null) { MonoCSharpCompilerOutputParser.< > f__mg$cache2 = new Func <Match, Regex, NormalizedCompilerStatus>(CompilerOutputParserBase.NormalizeUnknownTypeMemberOfNamespaceError); } normalizedCompilerStatus = CompilerOutputParserBase.TryNormalizeCompilerStatus(match, arg_AB_1, arg_AB_2, MonoCSharpCompilerOutputParser.< > f__mg$cache2); if (normalizedCompilerStatus.code != NormalizedCompilerStatusCode.NotNormalized) { result = normalizedCompilerStatus; } else { string arg_EC_1 = "CS0103"; Regex arg_EC_2 = MonoCSharpCompilerOutputParser.sUnknownTypeOrNamespace; if (MonoCSharpCompilerOutputParser.< > f__mg$cache3 == null) { MonoCSharpCompilerOutputParser.< > f__mg$cache3 = new Func <Match, Regex, NormalizedCompilerStatus>(CompilerOutputParserBase.NormalizeSimpleUnknownTypeOfNamespaceError); } result = CompilerOutputParserBase.TryNormalizeCompilerStatus(match, arg_EC_1, arg_EC_2, MonoCSharpCompilerOutputParser.< > f__mg$cache3); } } } return(result); }
protected static NormalizedCompilerStatus TryNormalizeCompilerStatus(Match match, string memberNotFoundError, Regex missingMemberRegex) { string str = match.Groups["id"].Value; NormalizedCompilerStatus normalizedCompilerStatus = new NormalizedCompilerStatus(); if (str != memberNotFoundError) return normalizedCompilerStatus; normalizedCompilerStatus.code = NormalizedCompilerStatusCode.MemberNotFound; Match match1 = missingMemberRegex.Match(match.Groups["message"].Value); normalizedCompilerStatus.details = match1.Groups["type_name"].Value + "%" + match1.Groups["member_name"].Value; return normalizedCompilerStatus; }
protected static NormalizedCompilerStatus TryNormalizeCompilerStatus(Match match, string idToCheck, Regex messageParser, Func <string, Regex, NormalizedCompilerStatus> normalizer) { string str = match.Groups["id"].Value; NormalizedCompilerStatus status = new NormalizedCompilerStatus(); if (str != idToCheck) { return(status); } return(normalizer(match.Groups["message"].Value, messageParser)); }
protected static NormalizedCompilerStatus TryNormalizeCompilerStatus(Match match, string memberNotFoundError, Regex missingMemberRegex) { string str = match.Groups["id"].Value; NormalizedCompilerStatus status = new NormalizedCompilerStatus(); if (str == memberNotFoundError) { status.code = NormalizedCompilerStatusCode.MemberNotFound; Match match2 = missingMemberRegex.Match(match.Groups["message"].Value); status.details = match2.Groups["type_name"].Value + "%" + match2.Groups["member_name"].Value; } return(status); }
protected static NormalizedCompilerStatus TryNormalizeCompilerStatus(Match match, string memberNotFoundError, Regex missingMemberRegex) { string value = match.Groups["id"].Value; NormalizedCompilerStatus result = default(NormalizedCompilerStatus); if (value != memberNotFoundError) { return(result); } result.code = NormalizedCompilerStatusCode.MemberNotFound; Match match2 = missingMemberRegex.Match(match.Groups["message"].Value); result.details = match2.Groups["type_name"].Value + "%" + match2.Groups["member_name"].Value; return(result); }
protected static NormalizedCompilerStatus TryNormalizeCompilerStatus(Match match, string idToCheck, Regex messageParser, Func <string, Regex, NormalizedCompilerStatus> normalizer) { string value = match.Groups["id"].Value; NormalizedCompilerStatus normalizedCompilerStatus = default(NormalizedCompilerStatus); NormalizedCompilerStatus result; if (value != idToCheck) { result = normalizedCompilerStatus; } else { result = normalizer(match.Groups["message"].Value, messageParser); } return(result); }
protected static NormalizedCompilerStatus TryNormalizeCompilerStatus(Match match, string idToCheck, Regex messageParser, Func<string, Regex, NormalizedCompilerStatus> normalizer) { string str = match.Groups["id"].Value; NormalizedCompilerStatus status = new NormalizedCompilerStatus(); if (str != idToCheck) { return status; } return normalizer.Invoke(match.Groups["message"].Value, messageParser); }