Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
        /// <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);
        }