Example #1
0
 public OwMethodInfo(OwType declaringType, OwMemberAccess access, string identifier, OwType resultType,
                     OwParameterInfo[] parameters)
     : base(declaringType, access, identifier)
 {
     ResultType = resultType;
     Parameters = parameters;
 }
Example #2
0
        internal override void Parse(ObjWastTranspiler transpiler)
        {
            // ex. (local $i i32)
            // ex. (local i32)
            // ex. (local i32 i64 f32)
            string identifier = transpiler.ParseIdentifier();
            OwType type       = transpiler.ParseType(Callable.Module);

            if (identifier != null)
            {
                Callable.AddVariable(CreateVariable(identifier, type));
            }
            else
            {
                Callable.AddVariable(CreateVariable(type));

                string name = transpiler.ParseName();

                while (!string.IsNullOrWhiteSpace(name))
                {
                    type = transpiler.ParseType(Callable.Module, name);
                    Callable.AddVariable(CreateVariable(type));

                    name = transpiler.ParseName();
                }
            }
        }
Example #3
0
 public OwFieldInfo(OwType declaringType, OwMemberAccess access, string identifier, OwType fieldType)
     : base(declaringType, access, identifier)
 {
     FieldType = fieldType;
 }
Example #4
0
 protected abstract ObjWastVariable CreateVariable(string identifier, OwType type);
Example #5
0
 protected abstract ObjWastVariable CreateVariable(OwType type);
Example #6
0
 protected override ObjWastVariable CreateVariable(OwType type)
 {
     return(new ObjWastLocal(type));
 }
Example #7
0
 protected override ObjWastVariable CreateVariable(string identifier, OwType type)
 {
     return(new ObjWastLocal(identifier, type));
 }
Example #8
0
 public OwMemberInfo(OwType declaringType, OwMemberAccess access, string identifier)
 {
     DeclaringType = declaringType;
     Access        = access;
     Identifier    = identifier;
 }
Example #9
0
 public ObjWastParam(string identifier, OwType type)
     : base(identifier, type)
 {
 }
Example #10
0
 public ObjWastParam(OwType type)
     : base(type)
 {
 }
Example #11
0
 public ObjWastVariable(string identifier, OwType type)
 {
     Identifier = identifier;
     Type       = type;
 }
Example #12
0
 public ObjWastVariable(OwType type)
 {
     Type = type;
 }