mirror of https://github.com/pulumi/pulumi.git
33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
|
|
package tokens
|
|
|
|
// Accessibility determines the visibility of a class member.
|
|
type Accessibility string
|
|
|
|
// Accessibility modifiers.
|
|
const (
|
|
PublicAccessibility Accessibility = "public"
|
|
PrivateAccessibility Accessibility = "private"
|
|
ProtectedAccessibility Accessibility = "protected"
|
|
)
|
|
|
|
// Special module names.
|
|
const (
|
|
DefaultModule ModuleName = ".default" // used to reference the default module.
|
|
)
|
|
|
|
// Special variable names.
|
|
const (
|
|
ThisVariable Name = ".this" // the current object (for class methods).
|
|
SuperVariable Name = ".super" // the parent class object (for class methods).
|
|
)
|
|
|
|
// Special function names.
|
|
const (
|
|
EntryPointFunction ModuleMemberName = ".main" // the special package entrypoint function.
|
|
ModuleInitFunction ModuleMemberName = ".init" // the special module initialization function.
|
|
ClassConstructorFunction ClassMemberName = ".ctor" // the special class instance constructor function.
|
|
ClassInitFunction ClassMemberName = ".init" // the special class initialization function.
|
|
)
|