Beispiel #1
0
 // 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);
 }
Beispiel #5
0
 public NamedDartType(StringReference name, DartType type)
 {
     this.name = name;
     this.type = type;
 }
Beispiel #6
0
 public NamedDartType(ComponentReader reader)
 {
     name = new StringReference(reader);
     type = reader.ReadDartType();
 }
Beispiel #7
0
 public SymbolConstant(string name)
 {
     this.name = new StringReference(name);
 }
Beispiel #8
0
 public SymbolConstant(StringReference name)
 {
     this.name = name;
 }
Beispiel #9
0
 public SymbolConstant(LibraryReference library, StringReference name)
 {
     this.library = library;
     this.name    = name;
 }
Beispiel #10
0
 public SymbolConstant(ComponentReader reader)
 {
     library = new LibraryReference(reader);
     name    = new StringReference(reader);
 }
Beispiel #11
0
 public StringConstant(string value)
 {
     this.value = new StringReference(value);
 }
Beispiel #12
0
 public StringConstant(StringReference value)
 {
     this.value = value;
 }
Beispiel #13
0
 public StringConstant(ComponentReader reader)
 {
     value = new StringReference(reader);
 }