/// <summary> /// Creates IConflictResolver by elementType. /// </summary> /// <param name="elementType">Type of CodeElement.</param> /// <param name="fileCodeModel">LuaFileCodeModel instance.</param> /// <returns>IConflictResolver implementation.</returns> public static IConflictResolver CreateConflictResolver(vsCMElement elementType, LuaFileCodeModel fileCodeModel) { IConflictResolver result = null; switch (elementType) { case vsCMElement.vsCMElementFunctionInvokeStmt: case vsCMElement.vsCMElementFunction: { result = new FunctionConflictResolver(fileCodeModel); break; } } return result; }
/// <summary> /// Creates IConflictResolver by elementType. /// </summary> /// <param name="elementType">Type of CodeElement.</param> /// <param name="fileCodeModel">LuaFileCodeModel instance.</param> /// <returns>IConflictResolver implementation.</returns> public static IConflictResolver CreateConflictResolver(vsCMElement elementType, LuaFileCodeModel fileCodeModel) { IConflictResolver result = null; switch (elementType) { case vsCMElement.vsCMElementFunctionInvokeStmt: case vsCMElement.vsCMElementFunction: { result = new FunctionConflictResolver(fileCodeModel); break; } } return(result); }