-
A function inserting the contents of a module in
ast, registering the identities of newly formed ASTs innodeSpaceand reporting diagnostics tolog.Declaration
Swift
public typealias ModuleLoader = ( _ ast: inout AST, _ log: inout DiagnosticSet, _ nodeSpace: Int ) throws -> ModuleDecl.ID -
The stored representation of an AST; distinguished for encoding/decoding purposes.
See moreDeclaration
Swift
private struct Storage : Codable -
The notional stored properties of
self; distinguished for encoding/decoding purposes.Declaration
Swift
private var storage: Storage -
The traits in Hylo’s standard library that are known by the compiler.
Declaration
Swift
public var coreTraits: CoreTraits? { get set } -
The indices of the modules.
Invariant
All referred modules have a different name.Declaration
Swift
public private(set) var modules: [ModuleDecl.ID] { get set } -
The module containing Hylo’s core library, if any.
Declaration
Swift
public var coreLibrary: ModuleDecl.ID? { get set } -
The expansion filter used while processing conditional compilation statements in
self.Declaration
Swift
public var compilationConditions: ConditionalCompilationFactors { get } -
Creates an empty AST, using using
compilationConditionsas conditions for selecting conditional compilation branches.Declaration
Swift
public init( _ compilationConditions: ConditionalCompilationFactors = ConditionalCompilationFactors() ) -
Creates a new node space and returns its identifier.
Declaration
Swift
public mutating func createNodeSpace() -> Int -
Loads a new module in
self, callingmaketo parse its contents and reporting diagnostics tolog.Declaration
Swift
public mutating func loadModule( inNodeSpace space: Int? = nil, reportingDiagnosticsTo log: inout DiagnosticSet, creatingContentsWith parseSources: ModuleLoader ) rethrows -> ModuleDecl.ID -
Loads a new module in
self, parsing its contents fromsourceCode, registering the identities of newly formed ASTs in spacespace, and reporting diagnostics tolog.Declaration
Swift
public mutating func loadModule<S: Sequence>( _ name: String, parsing sourceCode: S, inNodeSpace space: Int? = nil, withBuiltinModuleAccess builtinModuleAccess: Bool = false, reportingDiagnosticsTo log: inout DiagnosticSet ) throws -> ModuleDecl.ID where S.Element == SourceFileParameters
nameThe name of the loaded module.
sourceCodeThe URL of a single source file or the root directory of the module.
spaceThe space in which the module’s ASTs are registered. This argument should be
nilunless this method is called in a module loader.builtinModuleAccessWhether the module is allowed to access the builtin module.
logA set extended with the diagnostics reported by this method.
-
Inserts
nintoself, registering its identity in spacekand reporting well-formedness issues tolog.Declaration
Swift
public mutating func insert<T: Node>( _ n: T, inNodeSpace k: Int, reportingDiagnosticsTo log: inout DiagnosticSet ) -> T.ID -
Inserts
nintoself, registering its identity in spacek.Precondition
nis well formed.Declaration
Swift
public mutating func insert<T>(synthesized n: T, inNodeSpace k: Int) -> T.ID where T : Node
-
Accesses the node identified by
i.Declaration
Swift
public subscript<T>(i: T) -> T.Subject where T : ConcreteNodeID { get } -
Accesses the node identified by
i.Declaration
Swift
public subscript<T>(i: T?) -> T.Subject? where T : ConcreteNodeID { get } -
Accesses the node identified by
i.Declaration
Swift
public subscript<T>(i: T) -> Node where T : NodeIDProtocol { get } -
Accesses the node identified by
i.Declaration
Swift
public subscript<T>(i: T?) -> Node? where T : NodeIDProtocol { get } -
A sequence of concrete nodes projected from an AST.
Declaration
Swift
public typealias ConcreteProjectedSequence<T> = LazyMapSequence< LazySequence<T>.Elements, T.Element.Subject > where T: Sequence, T.Element: ConcreteNodeID -
Projects a sequence containing the nodes at
positions.Declaration
Swift
public subscript<T>(positions: T) -> ConcreteProjectedSequence<T> where T : Sequence, T.Element : ConcreteNodeID { get }
-
Indicates whether the Core library has been loaded.
Declaration
Swift
public var coreModuleIsLoaded: Bool { get } -
Returns the Hylo type of an optional
t.Requires
The Core library must have been loaded. -
Returns the Hylo type of an array of
t.Requires
The Core library must have been loaded.Declaration
Swift
public func array(_ t: AnyType) -> BoundGenericType -
Returns the type named
namedefined in the core library ornilit does not exist.Requires
The Core library must have been loaded.Declaration
Swift
public func coreType(_ name: String) -> ProductType? -
Returns the trait named
namedefined in the core library ornilif it does not exist.Requires
The Core library must have been loaded.Declaration
Swift
public func coreTrait(_ name: String) -> TraitType? -
Returns the trait describing types whose instances are expressible by this literal or
nilif it does not exist.Requires
The Core library must have been loaded.Declaration
-
Returns the ID of the module named
nif such a module has been loaded, ornilotherwise.Declaration
Swift
public func module(named n: String) -> ModuleDecl.ID? -
Returns the top-level declarations in the lexical scope of
module.Declaration
Swift
private func topLevelDecls(_ module: ModuleDecl.ID) -> some Collection<AnyDeclID> -
Returns the requirements declared in
t.Declaration
Swift
public func requirements(of t: TraitDecl.ID) -> RequirementSequence -
Returns the requirements named
nint.If
nis overloaded, the requirements are returned in the order in which they are declared in the source code. -
Returns the kind identifying synthesized declarations of
requirement, ornilifrequirementis not synthesizable.Declaration
Swift
public func synthesizedKind<T>(of requirement: T) -> SynthesizedFunctionDecl.Kind? where T : DeclID -
Returns a table mapping each parameter of
dto its default argument ifdis a function, initializer, method or subscript declaration; otherwise, returnsnil. -
Returns the name of entity defining the implementation of
dif it is external.Declaration
Swift
public func externalName(of d: FunctionDecl.ID) -> String? -
Returns the name of the entity interfaced by the declared function if it is an FFI.
Declaration
Swift
public func foreignName(of d: FunctionDecl.ID) -> String? -
Returns the run-time parameters of
diffdis callable.Declaration
Swift
public func runtimeParameters(of d: AnyDeclID) -> [ParameterDecl.ID]? -
Returns the generic parameters introduced by
d.Declaration
Swift
public func genericParameters(introducedBy d: AnyDeclID) -> [GenericParameterDecl.ID] -
Returns the name of
dunlessdis anonymous.Declaration
Swift
public func name(of d: FunctionDecl.ID) -> Name? -
Returns the name of
d.Declaration
Swift
public func name(of d: InitializerDecl.ID) -> Name -
Returns the name of
d.Declaration
Swift
public func name(of d: MethodDecl.ID) -> Name -
Returns the name of
d.Declaration
Swift
public func name(of d: SubscriptDecl.ID) -> Name -
Returns the subfields and pattern IDs of the named patterns contained in
See morep.Declaration
Swift
public func names<T>(in p: T) -> [(subfield: RecordPath, pattern: NamePattern.ID)] where T : PatternID -
Returns
(head, tail)whereheadcontains the nominal components ofnamefrom right to left andtailis the non-nominal component ofname, if any.Name expressions are rperesented as linked-list, whose elements are the components of a name in reverse order. This method splits such lists at the first non-nominal component.
Declaration
-
Calls
actionon each sub-pattern inpatternand its corresponding sub-expression inexpression, along with the path to this sub-pattern, relative toroot.Use this method to walk a pattern and a corresponding expression side by side and perform an action for each pair. Children of tuple patterns are visited in pre-order if and only if the corresponding expression is also a tuple. Otherwise,
actionis called on the tuple and the sub-patterns are not visited.Requires
expressionstructurally matchespattern: Ifpatternandexpressionare tuples, then they have equal lengths and labels.Declaration
Swift
public func walking( pattern: AnyPatternID, expression: AnyExprID, at root: RecordPath = [], _ action: (_ subfield: RecordPath, _ subpattern: AnyPatternID, _ subexpression: AnyExprID) -> Void ) -
Retutns the declaration of the implementation of
dwith effecta, if any.Declaration
Swift
public func implementation<T>(_ a: AccessEffect, of d: T.ID) -> T.Variant.ID? where T : BundleDecl -
Returns
trueiffsis a consuming for-loop.Declaration
Swift
public func isConsuming(_ s: ForStmt.ID) -> Bool -
Returns
trueifeis an expression starting with an implicit name qualification.Declaration
Swift
public func isImplicitlyQualified(_ e: AnyExprID) -> Bool -
Returns
trueifeis an expression starting with an implicit name qualification.Declaration
Swift
public func isImplicitlyQualified(_ e: NameExpr.ID) -> Bool -
Returns
trueiffeis an expression that’s marked for mutation.Declaration
Swift
public func isMarkedForMutation(_ e: AnyExprID) -> Bool -
Returns
trueiffeis an expression that’s marked for mutation.Declaration
Swift
public func isMarkedForMutation(_ e: NameExpr.ID) -> Bool -
Returns
trueiffeis an expression that’s marked for mutation.Declaration
Swift
public func isMarkedForMutation(_ e: FoldedSequenceExpr) -> Bool -
Returns the source site of
expr.Declaration
Swift
public func site(of expr: FoldedSequenceExpr) -> SourceRange -
Returns a site suitable to emit diagnostics related to
das a whole.Declaration
Swift
public func siteForDiagnostics<T>(about d: T) -> SourceRange where T : DeclID -
Returns the site from which the introducer of
dwas parsed, if any.Declaration
Swift
public func introducerSite<T>(of d: T) -> SourceRange? where T : DeclID -
The loaded entities from Hylo’s standard library that are known to the compiler.
Declaration
Swift
public var core: CoreEntities { get } -
Returns a map from used name to its mutability.
This method collects all name expressions that occurs in
d, visiting its children in pre-order. Nested type and extension declarations are not visited.Declaration
Swift
func uses<T>(in d: T.ID) -> [(NameExpr.ID, AccessEffect)] where T : CapturingDecl -
Visits
nand its children in pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func walk<O>(_ n: AnyNodeID, notifying o: inout O) where O : ASTWalkObserver -
Visits
nand its children in pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func walk<T, O>(_ n: T, notifying o: inout O) where T : NodeIDProtocol, O : ASTWalkObserver -
Visits
nand its children in pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func walk<T, O>(_ n: T?, notifying o: inout O) where T : NodeIDProtocol, O : ASTWalkObserver -
Visits all nodes in
rootsand their children in pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func walk<T, O>(roots: [T], notifying o: inout O) where T : NodeIDProtocol, O : ASTWalkObserver -
Visits all condition items in
iand their children in pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func walk<O>(conditionItems i: [ConditionItem], notifying o: inout O) where O : ASTWalkObserver
-
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: AssociatedTypeDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: AssociatedValueDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: BindingDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ConformanceDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ExtensionDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: FunctionDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: GenericParameterDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ImportDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: InitializerDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: MethodDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: MethodImpl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ModuleDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: NamespaceDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: OperatorDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ParameterDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ProductTypeDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: SubscriptDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: SubscriptImpl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: TraitDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: TypeAliasDecl, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: VarDecl, notifying o: inout O )
-
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: BooleanLiteralExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: BufferLiteralExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: CaptureExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: CastExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ConditionalExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ConformanceLensExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ExistentialTypeExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: FloatLiteralExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: FunctionCallExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: InoutExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: IntegerLiteralExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: LambdaExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ArrowTypeExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: MapLiteralExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: MatchExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: NameExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ParameterTypeExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: PragmaLiteralExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: RemoteTypeExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: SequenceExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: SpawnExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: StringLiteralExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: SubscriptCallExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: TupleExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: TupleMemberExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: TupleTypeExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: UnicodeScalarLiteralExpr, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: WildcardExpr, notifying o: inout O )
-
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: BindingPattern, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ExprPattern, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: NamePattern, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: OptionPattern, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: TuplePattern, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: WildcardPattern, notifying o: inout O )
-
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: AssignStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: BraceStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: BreakStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ConditionalBindingStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ConditionalCompilationStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ConditionalStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ContinueStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: DeclStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: DiscardStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: DoWhileStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ExprStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ForStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: ReturnStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: WhileStmt, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: YieldStmt, notifying o: inout O )
-
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: MatchCase, notifying o: inout O ) -
Visits the children of
nin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( _ n: TranslationUnit, notifying o: inout O ) -
Visits the children of
cin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O>(genericClause c: GenericClause, notifying o: inout O) where O : ASTWalkObserver -
Visits the children of
cin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O>(whereClause c: WhereClause, notifying o: inout O) where O : ASTWalkObserver -
Visits the children of
cin pre-order, notifyingowhen a node is entered or left.Declaration
Swift
public func traverse<O: ASTWalkObserver>( constraintExpr c: WhereClause.ConstraintExpr, notifying o: inout O ) -
Reports any well-formedness problems with
doccurring at global scope intolog.atTopLevelistrueiffdisn’t nested in any declaration.Declaration
Swift
func validateGlobalScopeMember( _ d: AnyDeclID, atTopLevel: Bool, reportingDiagnosticsTo log: inout DiagnosticSet ) -
Reports any well-formedness problems with
doccurring at global scope intolog.Declaration
Swift
func validateGlobalScopeMember( _ d: BindingDecl.ID, reportingDiagnosticsTo log: inout DiagnosticSet ) -
Reports any well-formedness problems with
doccurring at global scope intolog.Declaration
Swift
func validateGlobalScopeMember( _ d: FunctionDecl.ID, reportingDiagnosticsTo log: inout DiagnosticSet ) -
Reports any well-formedness problems with
doccurring at global scope intolog.Declaration
Swift
func validateGlobalScopeMember( _ d: SubscriptDecl.ID, reportingDiagnosticsTo log: inout DiagnosticSet ) -
Reports any well-formedness problems with
doccurring at type scope intolog.Declaration
Swift
func validateTypeMember(_ d: AnyDeclID, into log: inout DiagnosticSet) -
Reports any well-formedness problems with
doccurring at type scope intolog.Declaration
Swift
func validateTypeMember(_ d: BindingDecl.ID, reportingDiagnosticsTo log: inout DiagnosticSet) -
Reports any well-formedness problems with
doccurring at type scope intolog.Declaration
Swift
func validateTypeMember(_ d: FunctionDecl.ID, reportingDiagnosticsTo log: inout DiagnosticSet) -
The format of data that must be injected into a
StatefulEncoderfor serializing anASTinstance.Declaration
Swift
typealias EncodingState = SourceFile.EncodingState -
The format of data that must be injected into a
StatefulDecoderfor deserializing anASTinstance.Declaration
Swift
typealias DecodingState = SourceFile.DecodingState -
The parts of an encoded AST.
See moreDeclaration
Swift
private enum CodingKeys : String, CodingKey -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub