Beispiel #1
0
 protected override void Write(CiBinaryResourceExpr expr)
 {
     Write("getBinaryResource(");
     WriteConst(expr.Resource.Name);
     Write(", ");
     Write(expr.Resource.Content.Length);
     Write(')');
 }
Beispiel #2
0
 protected override void Write(CiBinaryResourceExpr expr)
 {
     Write("getBinaryResource(");
     WriteConst(expr.Resource.Name);
     Write(", ");
     Write(expr.Resource.Content.Length);
     Write(')');
 }
Beispiel #3
0
Datei: GenAs.cs Projekt: epi/cito
 protected override void Write(CiBinaryResourceExpr expr)
 {
     Write("new ");
     WriteName(expr.Resource);
 }
Beispiel #4
0
 protected override void Write(CiBinaryResourceExpr expr)
 {
     Write("new ");
     WriteName(expr.Resource);
 }
Beispiel #5
0
 protected virtual void Write(CiBinaryResourceExpr expr)
 {
     WriteName(expr.Resource);
 }
Beispiel #6
0
 protected virtual void Write(CiBinaryResourceExpr expr)
 {
     WriteName(expr.Resource);
 }
Beispiel #7
0
 CiExpr ICiExprVisitor.Visit(CiBinaryResourceExpr expr)
 {
     string name = (string) ResolveConstExpr(expr.NameExpr, CiStringPtrType.Value);
     CiBinaryResource resource;
     if (!this.BinaryResources.TryGetValue(name, out resource)) {
     resource = new CiBinaryResource();
     resource.Name = name;
     resource.Content = File.ReadAllBytes(FindFile(name));
     resource.Type = new CiArrayStorageType { ElementType = CiByteType.Value, Length = resource.Content.Length };
     this.BinaryResources.Add(name, resource);
     }
     expr.Resource = resource;
     return expr;
 }