/// <summary> /// Audits the class table for multiple symbol definition. /// </summary> /// <param name="status">BuildStatus to log the warnings if /// multiple symbol found.</param> /// /// <param name="guid">Guid of node to which warning corresponds</param> public void AuditMultipleDefinition(BuildStatus status, AssociativeGraph.GraphNode graphNode) { var names = symbolTable.GetAllSymbolNames(); if (names.Count == symbolTable.GetSymbolCount()) { return; } foreach (var name in names) { var symbols = symbolTable.GetAllSymbols(name); if (symbols.Count > 1) { var baseClass = GetCommonBaseClass(symbols); if (baseClass != null) { continue; } string message = string.Format(Resources.kMultipleSymbolFound, name, ""); foreach (var symbol in symbols) { message += ", " + symbol.FullName; } status.LogWarning(BuildData.WarningID.MultipleSymbolFound, message, graphNode: graphNode); } } }
/// <summary> /// Audits the class table for multiple symbol definition. /// </summary> /// <param name="status">BuildStatus to log the warnings if /// multiple symbol found.</param> /// /// <param name="guid">Guid of node to which warning corresponds</param> public void AuditMultipleDefinition(BuildStatus status, System.Guid guid = default(System.Guid)) { var names = symbolTable.GetAllSymbolNames(); if (names.Count == symbolTable.GetSymbolCount()) { return; } foreach (var name in names) { var symbols = symbolTable.GetAllSymbols(name); if (symbols.Count > 1) { string message = string.Format(BuildData.WarningMessage.kMultipleSymbolFound, name, ""); foreach (var symbol in symbols) { message += ", " + symbol.FullName; } status.LogWarning(BuildData.WarningID.kMultipleSymbolFound, message, guid: guid); } } }
/// <summary> /// Audits the class table for multiple symbol definition. /// </summary> /// <param name="status">BuildStatus to log the warnings if /// multiple symbol found.</param> /// /// <param name="guid">Guid of node to which warning corresponds</param> public void AuditMultipleDefinition(BuildStatus status, AssociativeGraph.GraphNode graphNode) { var names = symbolTable.GetAllSymbolNames(); if (names.Count == symbolTable.GetSymbolCount()) { return; } foreach (var name in names) { var symbols = symbolTable.GetAllSymbols(name); if (symbols.Count > 1) { string message = string.Format(StringConstants.kMultipleSymbolFound, name, ""); foreach (var symbol in symbols) { message += ", " + symbol.FullName; } status.LogWarning(BuildData.WarningID.kMultipleSymbolFound, message, graphNode: graphNode); } } }
/// <summary> /// Audits the class table for multiple symbol definition. /// </summary> /// <param name="status">BuildStatus to log the warnings if /// multiple symbol found.</param> /// /// <param name="guid">Guid of node to which warning corresponds</param> public void AuditMultipleDefinition(BuildStatus status, AssociativeGraph.GraphNode graphNode) { var names = symbolTable.GetAllSymbolNames(); if (names.Count == symbolTable.GetSymbolCount()) return; foreach (var name in names) { var symbols = symbolTable.GetAllSymbols(name); if (symbols.Count > 1) { string message = string.Format(Resources.kMultipleSymbolFound, name, ""); foreach (var symbol in symbols) { message += ", " + symbol.FullName; } status.LogWarning(BuildData.WarningID.MultipleSymbolFound, message, graphNode: graphNode); } } }
} } /// <summary> /// Audits the class table for multiple symbol definition. /// </summary> /// <param name="status">BuildStatus to log the warnings if /// multiple symbol found.</param> /// /// <param name="guid">Guid of node to which warning corresponds</param> public void AuditMultipleDefinition(BuildStatus status, System.Guid guid = default(System.Guid)) { var names = symbolTable.GetAllSymbolNames(); if (names.Count == symbolTable.GetSymbolCount()) return; foreach (var name in names) { var symbols = symbolTable.GetAllSymbols(name); if (symbols.Count > 1) { string message = string.Format(BuildData.WarningMessage.kMultipleSymbolFound, name, ""); foreach (var symbol in symbols) { message += ", " + symbol.FullName; } status.LogWarning(BuildData.WarningID.kMultipleSymbolFound, message, guid: guid);