예제 #1
0
 public override ResolveResult Resolve(CSharpResolver resolver)
 {
     ResolveResult[] elements = new ResolveResult[arrayElements.Count];
     for (int i = 0; i < elements.Length; i++)
     {
         elements[i] = arrayElements[i].Resolve(resolver);
     }
     if (elementType != null)
     {
         return(resolver.ResolveArrayCreation(elementType.Resolve(resolver.CurrentTypeResolveContext), 1, null, elements));
     }
     else
     {
         return(resolver.ResolveArrayCreation(null, 1, null, elements));
     }
 }
예제 #2
0
		public override ResolveResult Resolve(CSharpResolver resolver)
		{
			ResolveResult[] elements = new ResolveResult[arrayElements.Count];
			for (int i = 0; i < elements.Length; i++) {
				elements[i] = arrayElements[i].Resolve(resolver);
			}
			if (elementType != null) {
				return resolver.ResolveArrayCreation(elementType.Resolve(resolver.Context), 1, null, elements);
			} else {
				return resolver.ResolveArrayCreation(null, 1, null, elements);
			}
		}