Exemple #1
0
        public VSharpAttribute(string target, TypeNameExpression expr, Arguments[] args, Location loc, bool nameEscaped)
        {
            this.attributeType = expr;
            if (args != null)
            {
                pos_args = args[0];
                pos_args.FilterArgs(out namedCtorArguments, out positionalArguments);
                named_args = args[1];
                if (args[1] != null)
                {
                    this.namedArguments = named_args.ToNamedArgs();
                }
            }
            this.loc       = loc;
            ExplicitTarget = target;


            this.positionalArguments = positionalArguments ?? EmptyList <IConstantValue> .Instance;
            this.namedCtorArguments  = namedCtorArguments ?? EmptyList <KeyValuePair <string, IConstantValue> > .Instance;
        }
Exemple #2
0
 public ImportPackage(TypeNameExpression expr, Location loc)
     : base(expr, loc)
 {
 }
Exemple #3
0
 public Import(TypeNameExpression expr, Location loc)
 {
     this.expr = expr;
     this.loc  = loc;
 }
 public ImportPackageAlias(AliasIdentifier alias, TypeNameExpression expr, Location loc)
     : base(expr, loc)
 {
     this.alias = alias;
 }