~ubuntu-branches/ubuntu/utopic/monodevelop/utopic

« back to all changes in this revision

Viewing changes to external/nrefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-10-10 14:50:04 UTC
  • mfrom: (10.3.4)
  • Revision ID: package-import@ubuntu.com-20131010145004-80l130sny21b17sb
Tags: 4.0.12+dfsg-1
* [5dcb6e1] Fix debian/watch for new source tarball name format
* [5c68cb5] Refresh list of files removed by get-orig-source to 
  reflect 4.0.12
* [96d60a0] Imported Upstream version 4.0.12+dfsg
* [b989752] Refresh debian/patches/no_appmenu to ensure it applies
* [2a4c351] Ensure every assembly in external/ is cleaned properly
* [92762f7] Add more excluded Mac-specific modulerefs
* [bc698ba] Add symlinks to NUnit assemblies (Closes: #714246)

Show diffs side-by-side

added added

removed removed

Lines of Context:
989
989
                        EndNode(pointerReferenceExpression);
990
990
                }
991
991
                
992
 
                public void VisitEmptyExpression(EmptyExpression emptyExpression)
993
 
                {
994
 
                        StartNode(emptyExpression);
995
 
                        EndNode(emptyExpression);
996
 
                }
997
 
 
998
992
                #region VisitPrimitiveExpression
999
993
                public void VisitPrimitiveExpression(PrimitiveExpression primitiveExpression)
1000
994
                {
1465
1459
                {
1466
1460
                        StartNode(namespaceDeclaration);
1467
1461
                        WriteKeyword(Roles.NamespaceKeyword);
1468
 
                        WriteQualifiedIdentifier(namespaceDeclaration.Identifiers);
 
1462
                        namespaceDeclaration.NamespaceName.AcceptVisitor (this);
1469
1463
                        OpenBrace(policy.NamespaceBraceStyle);
1470
1464
                        foreach (var member in namespaceDeclaration.Members) {
1471
1465
                                member.AcceptVisitor(this);
2597
2591
                        StartNode(documentationReference);
2598
2592
                        if (!documentationReference.DeclaringType.IsNull) {
2599
2593
                                documentationReference.DeclaringType.AcceptVisitor(this);
2600
 
                                if (documentationReference.EntityType != EntityType.TypeDefinition) {
 
2594
                                if (documentationReference.SymbolKind != SymbolKind.TypeDefinition) {
2601
2595
                                        WriteToken(Roles.Dot);
2602
2596
                                }
2603
2597
                        }
2604
 
                        switch (documentationReference.EntityType) {
2605
 
                                case EntityType.TypeDefinition:
 
2598
                        switch (documentationReference.SymbolKind) {
 
2599
                                case SymbolKind.TypeDefinition:
2606
2600
                                        // we already printed the DeclaringType
2607
2601
                                        break;
2608
 
                                case EntityType.Indexer:
 
2602
                                case SymbolKind.Indexer:
2609
2603
                                        WriteKeyword(IndexerDeclaration.ThisKeywordRole);
2610
2604
                                        break;
2611
 
                                case EntityType.Operator:
 
2605
                                case SymbolKind.Operator:
2612
2606
                                        var opType = documentationReference.OperatorType;
2613
2607
                                        if (opType == OperatorType.Explicit) {
2614
2608
                                                WriteKeyword(OperatorDeclaration.ExplicitRole);
2630
2624
                        WriteTypeArguments(documentationReference.TypeArguments);
2631
2625
                        if (documentationReference.HasParameterList) {
2632
2626
                                Space(policy.SpaceBeforeMethodDeclarationParentheses);
2633
 
                                if (documentationReference.EntityType == EntityType.Indexer) {
 
2627
                                if (documentationReference.SymbolKind == SymbolKind.Indexer) {
2634
2628
                                        WriteCommaSeparatedListInBrackets(documentationReference.Parameters, policy.SpaceWithinMethodDeclarationParentheses);
2635
2629
                                } else {
2636
2630
                                        WriteCommaSeparatedListInParenthesis(documentationReference.Parameters, policy.SpaceWithinMethodDeclarationParentheses);