Ejemplo n.º 1
0
        public ISourceFileScope CreateFileScope(IFile file, IProjectScope projectScope, CompileToolContext context)
        {
            var identifier = file.GetProperty("Identifier");
            if (string.IsNullOrEmpty(identifier))
            {
                context.AddMessage(new BinaryCompileMessage { Filename = file.AbsolutePath, Line = 0, Message = "No identifier was specified for the file", MessageLevel = Level.Error});
                return null;
            }

            return new BinaryFileScope(projectScope, identifier, file.AbsolutePath);
        }