final class · System.Bindings
Place
final class Place
Where the description is: the namespace, class and file lines written when they change.
- Kind
- final class
- Namespace
- System.Bindings
- Assembly
- System.Bindings
- Access
- internal, final
- Source file
Profile.ant
Inheritance
- Base classes
-
AnyPlace
Constructors
new(StringBuilder text, str ns, str cls)
#
Methods
At(str wantNamespace, str wantClass, str wantFile)
#
Private and internal members (4)
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
Place as Antril, decompiled from its Larva HIR.
// System.Bindings.Place — System.Bindings (decompiled from Larva HIR)
import System;
into namespace System.Bindings
{
/// Where the description is: the `namespace`, `class` and `file` lines written when they change.
final class Place
{
StringBuilder text;
str ns;
str cls;
str file;
public:
new(StringBuilder text, str ns, str cls)
{
file = "";
this.text = text;
this.ns = ns;
this.cls = cls;
}
At(str wantNamespace, str wantClass, str wantFile)
{
if (wantFile.Length > 0 && wantFile != file)
{
file = wantFile;
text.Append("file ").Append(file).Append("\n");
}
if (wantNamespace != ns)
{
ns = wantNamespace;
text.Append("namespace ").Append(ns).Append("\n");
}
if (wantClass != cls)
{
cls = wantClass;
text.Append("class ").Append(cls).Append("\n");
}
}
}
}