// todo: this needs a builder class public Class(CanonicalNameReference canonicalName, UriReference fileUri, FileOffset startFileOffset, FileOffset fileOffset, FileOffset fileEndOffset, Flag flags, StringReference name, List <Expression> annotations, List <TypeParameter> typeParameters, Option <DartType> superClass, Option <DartType> mixedInType, List <DartType> implementedClasses, List <Field> fields, List <Constructor> constructors, List <Procedure> procedures, List <RedirectingFactoryConstructor> redirectingFactoryConstructors, uint[] procedureOffsets) { this.canonicalName = canonicalName; this.fileUri = fileUri; this.startFileOffset = startFileOffset; this.fileOffset = fileOffset; this.fileEndOffset = fileEndOffset; this.flags = flags; this.name = name; this.annotations = annotations; this.typeParameters = typeParameters; this.superClass = superClass; this.mixedInType = mixedInType; this.implementedClasses = implementedClasses; this.fields = fields; this.constructors = constructors; this.procedures = procedures; this.redirectingFactoryConstructors = redirectingFactoryConstructors; this.procedureOffsets = procedureOffsets; }
public Name(string name) { this.name = new StringReference(name); }
public Name(ComponentReader reader) { name = new StringReference(reader); // library = name.GetString().StartsWith('_') ? new LibraryReference(reader) : null; library = reader.GetString(name)?.StartsWith('_') ?? false ? new LibraryReference(reader) : null; }
public CanonicalName(ComponentReader reader) { parent = new CanonicalNameReference(reader); name = new StringReference(reader); }
public NamedDartType(StringReference name, DartType type) { this.name = name; this.type = type; }
public NamedDartType(ComponentReader reader) { name = new StringReference(reader); type = reader.ReadDartType(); }
public SymbolConstant(string name) { this.name = new StringReference(name); }
public SymbolConstant(StringReference name) { this.name = name; }
public SymbolConstant(LibraryReference library, StringReference name) { this.library = library; this.name = name; }
public SymbolConstant(ComponentReader reader) { library = new LibraryReference(reader); name = new StringReference(reader); }
public StringConstant(string value) { this.value = new StringReference(value); }
public StringConstant(StringReference value) { this.value = value; }
public StringConstant(ComponentReader reader) { value = new StringReference(reader); }