~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet/AspNetAppProject.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
using MonoDevelop.Core.Assemblies;
43
43
 
44
44
using MonoDevelop.AspNet.Parser;
45
 
using MonoDevelop.AspNet.Parser.Dom;
46
45
using MonoDevelop.AspNet.Deployment;
47
46
using MonoDevelop.AspNet.Gui;
48
47
using ICSharpCode.NRefactory.TypeSystem;
297
296
                        string extension = System.IO.Path.GetExtension (fileName);
298
297
                        if (extension == null)
299
298
                                return WebSubtype.None;
300
 
                        extension = extension.ToLower ().TrimStart ('.');
 
299
                        extension = extension.ToUpperInvariant ().TrimStart ('.');
301
300
                        
302
301
                        //NOTE: No way to identify WebSubtype.Code from here
303
302
                        //use the instance method for that
304
 
                        switch (extension)
305
 
                        {
306
 
                        case "aspx":
 
303
                        switch (extension) {
 
304
                        case "ASPX":
307
305
                                return WebSubtype.WebForm;
308
 
                        case "master":
 
306
                        case "MASTER":
309
307
                                return WebSubtype.MasterPage;
310
 
                        case "ashx":
 
308
                        case "ASHX":
311
309
                                return WebSubtype.WebHandler;
312
 
                        case "ascx":
 
310
                        case "ASCX":
313
311
                                return WebSubtype.WebControl;
314
 
                        case "asmx":
 
312
                        case "ASMX":
315
313
                                return WebSubtype.WebService;
316
 
                        case "asax":
 
314
                        case "ASAX":
317
315
                                return WebSubtype.Global;
318
 
                        case "gif":
319
 
                        case "png":
320
 
                        case "jpg":
 
316
                        case "GIF":
 
317
                        case "PNG":
 
318
                        case "JPG":
321
319
                                return WebSubtype.WebImage;
322
 
                        case "skin":
 
320
                        case "SKIN":
323
321
                                return WebSubtype.WebSkin;
324
 
                        case "config":
 
322
                        case "CONFIG":
325
323
                                return WebSubtype.Config;
326
 
                        case "browser":
 
324
                        case "BROWSER":
327
325
                                return WebSubtype.BrowserDefinition;
328
 
                        case "axd":
 
326
                        case "AXD":
329
327
                                return WebSubtype.Axd;
330
 
                        case "sitemap":
 
328
                        case "SITEMAP":
331
329
                                return WebSubtype.Sitemap;
332
 
                        case "css":
 
330
                        case "CSS":
333
331
                                return WebSubtype.Css;
334
 
                        case "xhtml":
335
 
                        case "html":
336
 
                        case "htm":
 
332
                        case "XHTML":
 
333
                        case "HTML":
 
334
                        case "HTM":
337
335
                                return WebSubtype.Html;
338
 
                        case "js":
 
336
                        case "JS":
339
337
                                return WebSubtype.JavaScript;
340
338
                        default:
341
339
                                return WebSubtype.None;
708
706
                        if (typeName != null) {
709
707
                                var dom = TypeSystemService.GetCompilation (this);
710
708
                                if (dom != null)
711
 
                                        return dom.LookupType (typeName);
 
709
                                        return ReflectionHelper.ParseReflectionName (typeName).Resolve (dom);
712
710
                        }
713
711
                        return null;
714
712
                }