swift
c0ccdb16 - Change getBaseName to return DeclBaseName instead of Identifier (#9968)

Commit
8 years ago
Change getBaseName to return DeclBaseName instead of Identifier (#9968) This changes `getBaseName()` on `DeclName` to return a `DeclBaseName` instead of an `Identifier`. All places that will continue to be expecting an `Identifier` are changed to call `getBaseIdentifier` which will later assert that the `DeclName` is actually backed by an identifier and not a special name. For transitional purposes, a conversion operator from `DeclBaseName` to `Identifier` has been added that will be removed again once migration to DeclBaseName has been completed in other parts of the compiler. Unify approach to printing declaration names Printing a declaration's name using `<<` and `getBaseName()` is be independent of the return type of `getBaseName()` which will change in the future from `Identifier` to `DeclBaseName`
Author
Parents
  • include/swift/AST
    • File
      Decl.h
    • File
      Identifier.h
  • lib
    • AST
      • File
        ASTContext.cpp
      • File
        Decl.cpp
      • File
        Module.cpp
      • File
        NameLookup.cpp
      • File
        SwiftNameTranslation.cpp
    • ClangImporter
      • File
        ClangImporter.cpp
      • File
        IAMInference.h
      • File
        ImportDecl.cpp
      • File
        ImportType.cpp
      • File
        SwiftLookupTable.cpp
    • IDE
      • File
        CodeCompletion.cpp
      • File
        SyntaxModel.cpp
    • Parse
      • File
        ParseExpr.cpp
      • File
        ParseIfConfig.cpp
    • SILGen
      • File
        SILGenLValue.cpp
    • Sema
      • File
        CSDiag.cpp
      • File
        CSSimplify.cpp
      • File
        DerivedConformances.cpp
      • File
        MiscDiagnostics.cpp
      • File
        TypeCheckConstraints.cpp
      • File
        TypeCheckDecl.cpp
      • File
        TypeCheckNameLookup.cpp
      • File
        TypeCheckPattern.cpp
      • File
        TypeCheckProtocol.cpp
  • tools
    • SourceKit/lib/SwiftLang
      • File
        SwiftSourceDocInfo.cpp
    • swift-api-digester
      • File
        swift-api-digester.cpp
    • swift-ide-test
      • File
        swift-ide-test.cpp