☀️ Sun Language
GitHubGitHub (opens in a new tab)
  • Introduction
  • Examples
  • Overview
  • Builtin Types
  • Functions & Lambdas
  • Control Flow
  • Match Expressions
  • Enums
  • Classes
  • Interfaces
  • Generics
  • Error Handling
  • Testing
  • Memory Safety
  • Threads
  • SIMD
  • Matrices
  • NVIDIA GPU Matrices
  • Modules & Configuration
  • Protobuf
  • Standard Library
  • TLS & HTTPS
  • Compiler Intrinsics
  • C FFI
  • ABI (Draft)
    • Compatibility Model
    • Experimental Implementation
    • Examples
    • Declarations & Symbols
    • Data Layout
    • Function Calls
    • Ownership & Allocation
    • Interfaces & Closures
    • Generic Specialization
    • Runtime & Errors
    • Moon Library Format
    • Conformance & Implementation
  • Formatting
  • Architecture
    • Semantic Analysis
    • Code Generation
  • Compiler API Reference
  • Roadmap

On This Page

  • Inherits
  • Public Functions
  • getType
Question? Give us feedback → (opens in a new tab)Edit this page
Compiler API Reference
sun::semantic_analysis::GlobalScope

sun::semantic_analysis::GlobalScope

struct · Source (opens in a new tab)

struct sun::semantic_analysis::GlobalScope : public sun::semantic_analysis::SemanticScopeBase

GlobalScope - Top-level program scope

Inherits

  • sun::semantic_analysis::SemanticScopeBase (public)

Public Functions

  • getType

getType

public · function · Source (opens in a new tab)

ScopeType sun::semantic_analysis::GlobalScope::getType() const override

Returns the lexical scope category used for scope-specific lookup.

Related: ScopeType

Compiler API Reference

Sun Programming Language Documentation