Example #1
0
		/*
		public static List<AbstractType> SearchAndResolve(ResolutionContext ctxt, CodeLocation caret, string name, object idObject=null)
		{
			var scan = new NameScan(ctxt, name, idObject);

			scan.IterateThroughScopeLayers(caret);

			return scan.matches_types;
		}*/

		public static List<AbstractType> SearchAndResolve(ResolutionContext ctxt, CodeLocation caret, int nameHash, object idObject=null)
		{
			var scan = new NameScan(ctxt, nameHash, idObject);

			scan.IterateThroughScopeLayers(caret);

			return scan.matches_types;
		}
Example #2
0
        /*
         * public static List<AbstractType> SearchAndResolve(ResolutionContext ctxt, CodeLocation caret, string name, object idObject=null)
         * {
         *      var scan = new NameScan(ctxt, name, idObject);
         *
         *      scan.IterateThroughScopeLayers(caret);
         *
         *      return scan.matches_types;
         * }*/

        public static List <AbstractType> SearchAndResolve(ResolutionContext ctxt, CodeLocation caret, int nameHash, object idObject = null)
        {
            var scan = new NameScan(ctxt, nameHash, idObject);

            scan.IterateThroughScopeLayers(caret);

            return(scan.matches_types);
        }