예제 #1
0
        public void CheckSemantics(Scope scope, Report report, RecordDecNode _record)
        {
            recordNode = _record;
            var fieldList = _record.paramsNode.parameters;

            for (int i = 0; i < fieldList.Count; i++)
            {
                if (fieldList[i].id.name == id.name)
                {
                    fieldType = recordNode.infos[i];
                    return;
                }
            }

            returnType = scope.FindType("error");
        }
예제 #2
0
 protected abstract bool SupportType(Semantics.TypeInfo type);